- All Known Subinterfaces:
SocketConnectorHandler
- All Known Implementing Classes:
AbstractSocketConnectorHandler
,NIOTransport
,TCPNIOConnectorHandler
,TCPNIOTransport
,UDPNIOConnectorHandler
,UDPNIOTransport
,UDPNIOTransport.TransportConnectorHandler
public interface ConnectorHandler<E>
Client side connector handler API. ConnectorHandler is responsible for creating and initializing
Connection
, and optionally connect it to a specific local/remote address.- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescriptionCreates, initializes and establishesConnection
to the specificremoteAddress
.Creates, initializesConnection
, binds it to the specific local and remoteremoteAddress
.void
connect
(E remoteAddress, E localAddress, CompletionHandler<Connection> completionHandler) Creates, initializesConnection
, binds it to the specific local and remoteremoteAddress
.void
connect
(E remoteAddress, CompletionHandler<Connection> completionHandler) Creates, initializes and establishesConnection
to the specificremoteAddress
.
-
Method Details
-
connect
Creates, initializes and establishesConnection
to the specificremoteAddress
.- Parameters:
remoteAddress
- remote address to connect to- Returns:
Future
of connect operation, which could be used to get resultingConnection
-
connect
Creates, initializes and establishesConnection
to the specificremoteAddress
.- Parameters:
remoteAddress
- remote address to connect tocompletionHandler
-CompletionHandler
-
connect
Creates, initializesConnection
, binds it to the specific local and remoteremoteAddress
.- Parameters:
remoteAddress
- remote address to connect tolocalAddress
- local address to bind aConnection
to- Returns:
Future
of connect operation, which could be used to get resultingConnection
-
connect
Creates, initializesConnection
, binds it to the specific local and remoteremoteAddress
.- Parameters:
remoteAddress
- remote address to connect tolocalAddress
- local address to bind aConnection
tocompletionHandler
-CompletionHandler
-