public interface SocketConnectorHandler extends ConnectorHandler<java.net.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 |
|---|---|
java.util.concurrent.Future<Connection> |
connect(java.lang.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
java.util.concurrent.Future<Connection> connect(java.lang.String host, int port) throws java.io.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.java.io.IOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.