public interface ConnectorHandler<E>
Connection, and optionally connect is to a specific local/remote
address.| Modifier and Type | Method and Description |
|---|---|
Future<Connection> |
connect(E remoteAddress)
Creates, initializes and connects socket to the specific
SocketAddress and returns Connection, representing socket. |
void |
connect(E remoteAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes and connects socket to the specific
SocketAddress and returns Connection, representing socket. |
Future<Connection> |
connect(E remoteAddress,
E localAddress)
Creates, initializes socket, binds it to the specific local and remote
SocketAddress and returns Connection, representing socket. |
void |
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. |
Future<Connection> connect(E remoteAddress)
SocketAddress and returns Connection, representing socket.remoteAddress - remote address to connect to.Future of connect operation, which could be used to get
resulting Connection.void connect(E remoteAddress, CompletionHandler<Connection> completionHandler)
SocketAddress and returns Connection, representing socket.remoteAddress - remote address to connect to.completionHandler - CompletionHandler.Future<Connection> connect(E remoteAddress, E localAddress)
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.void connect(E remoteAddress, E localAddress, CompletionHandler<Connection> completionHandler)
SocketAddress and returns Connection, representing socket.remoteAddress - remote address to connect to.localAddress - local address to bind socket to.completionHandler - CompletionHandler.Copyright © 2013 Oracle Corporation. All Rights Reserved.