|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectorHandler<E>
Client side connector handler API.
ConnectorHandler is responsible for creating and initializing
Connection, and optionally connect is to a specific local/remote
address.
| Method Summary | |
|---|---|
java.util.concurrent.Future<Connection> |
connect(E remoteAddress)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
java.util.concurrent.Future<Connection> |
connect(E remoteAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
java.util.concurrent.Future<Connection> |
connect(E remoteAddress,
E localAddress)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
java.util.concurrent.Future<Connection> |
connect(E remoteAddress,
E localAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
| Method Detail |
|---|
java.util.concurrent.Future<Connection> connect(E remoteAddress)
throws java.io.IOException
SocketAddress and returns Connection, representing socket.
remoteAddress - remote address to connect to.
Future of connect operation, which could be used to get
resulting Connection.
java.io.IOException
java.util.concurrent.Future<Connection> connect(E remoteAddress,
CompletionHandler<Connection> completionHandler)
throws java.io.IOException
SocketAddress and returns Connection, representing socket.
remoteAddress - remote address to connect to.completionHandler - CompletionHandler.
Future of connect operation, which could be used to get
resulting Connection.
java.io.IOException
java.util.concurrent.Future<Connection> connect(E remoteAddress,
E localAddress)
throws java.io.IOException
SocketAddress and returns Connection, representing socket.
remoteAddress - remote address to connect to.localAddress - local address to bind socket to.
Future of connect operation, which could be used to get
resulting Connection.
java.io.IOException
java.util.concurrent.Future<Connection> connect(E remoteAddress,
E localAddress,
CompletionHandler<Connection> completionHandler)
throws java.io.IOException
SocketAddress and returns Connection, representing socket.
remoteAddress - remote address to connect to.localAddress - local address to bind socket to.completionHandler - CompletionHandler.
Future of connect operation, which could be used to get
resulting Connection.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||