public interface ConnectorHandler<E>
Connection, and optionally connect it to a specific local/remote address.| Modifier and Type | Method and Description |
|---|---|
Future<Connection> |
connect(E remoteAddress)
Creates, initializes and establishes
Connection to the specific remoteAddress. |
void |
connect(E remoteAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes and establishes
Connection to the specific remoteAddress. |
Future<Connection> |
connect(E remoteAddress,
E localAddress)
Creates, initializes
Connection, binds it to the specific local and remote remoteAddress. |
void |
connect(E remoteAddress,
E localAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes
Connection, binds it to the specific local and remote remoteAddress. |
Future<Connection> connect(E remoteAddress)
Connection to the specific remoteAddress.remoteAddress - remote address to connect toFuture of connect operation, which could be used to get resulting Connectionvoid connect(E remoteAddress, CompletionHandler<Connection> completionHandler)
Connection to the specific remoteAddress.remoteAddress - remote address to connect tocompletionHandler - CompletionHandlerFuture<Connection> connect(E remoteAddress, E localAddress)
Connection, binds it to the specific local and remote remoteAddress.remoteAddress - remote address to connect tolocalAddress - local address to bind a Connection toFuture of connect operation, which could be used to get resulting Connectionvoid connect(E remoteAddress, E localAddress, CompletionHandler<Connection> completionHandler)
Connection, binds it to the specific local and remote remoteAddress.remoteAddress - remote address to connect tolocalAddress - local address to bind a Connection tocompletionHandler - CompletionHandlerCopyright © 2017–2020 Oracle Corporation. All rights reserved.