- All Superinterfaces:
ConnectorHandler<SocketAddress>
- All Known Implementing Classes:
AbstractSocketConnectorHandler,NIOTransport,TCPNIOConnectorHandler,TCPNIOTransport,UDPNIOConnectorHandler,UDPNIOTransport,UDPNIOTransport.TransportConnectorHandler
Socket based client side connector. SocketConnectorHandler is responsible for creating and initializing
Connection, and optionally connect is to a specific local/remote address.- Author:
- Alexey Stashok
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreates, initializes and connects socket to the specific remote host and port and returnsConnection, representing socket.Methods inherited from interface org.glassfish.grizzly.ConnectorHandler
connect, connect, connect, connect
-
Field Details
-
DEFAULT_CONNECTION_TIMEOUT
static final int DEFAULT_CONNECTION_TIMEOUT- See Also:
-
-
Method Details
-
connect
Creates, initializes and connects socket to the specific remote host and port and returnsConnection, representing socket.- Parameters:
host- remote host to connect to.port- remote port to connect to.- Returns:
Futureof connect operation, which could be used to get resultingConnection.- Throws:
IOException- not actually thrown
-