public interface SocketConnectorHandler extends ConnectorHandler<SocketAddress>
Connection, and optionally connect is to a specific local/remote address.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
Future<Connection> |
connect(String host,
int port)
Creates, initializes and connects socket to the specific remote host and port and returns
Connection,
representing socket. |
connect, connect, connect, connectstatic final int DEFAULT_CONNECTION_TIMEOUT
Future<Connection> connect(String host, int port) throws IOException
Connection,
representing socket.host - remote host to connect to.port - remote port to connect to.Future of connect operation, which could be used to get resulting Connection.IOException - not actually thrownCopyright © 2017–2020 Oracle Corporation. All rights reserved.