rice.pastry.socket.appsocket
Interface SocketFactory
public interface SocketFactory
Allows opening a socket directly to an Application on a FreePastry node.
On the FreePastry side, the connection is an AppSocket. On the connecting
side, you can receive an AppSocket or a SocketChannel.
- Author:
- Jeff Hoye
Method Summary |
Cancellable |
getAppSocket(java.net.InetSocketAddress addr,
int appid,
Continuation<AppSocket,java.lang.Exception> c,
java.util.Map<java.lang.String,java.lang.Object> options)
|
Cancellable |
getSocketChannel(java.net.InetSocketAddress addr,
int appid,
Continuation<java.nio.channels.SocketChannel,java.lang.Exception> c,
java.util.Map<java.lang.String,java.lang.Object> options)
|
getAppSocket
Cancellable getAppSocket(java.net.InetSocketAddress addr,
int appid,
Continuation<AppSocket,java.lang.Exception> c,
java.util.Map<java.lang.String,java.lang.Object> options)
- Parameters:
addr
- the location of the freepastry nodeappid
- the application in the freepastry node see StandardAddress.getAddress()c
- deliver the socket to this continuationoptions
- use these transport layer specific options when opening the socket
- Returns:
- use this to cancel the call
getSocketChannel
Cancellable getSocketChannel(java.net.InetSocketAddress addr,
int appid,
Continuation<java.nio.channels.SocketChannel,java.lang.Exception> c,
java.util.Map<java.lang.String,java.lang.Object> options)
Copyright © 2001-2005 - Rice Pastry.