public interface AsyncClientConnectionOperator
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<ManagedAsyncClientConnection> |
connect(ConnectionInitiator connectionInitiator,
HttpHost host,
java.net.SocketAddress localAddress,
Timeout connectTimeout,
java.lang.Object attachment,
<any> callback)
Initiates operation to create a connection to the remote endpoint using
the provided
ConnectionInitiator. |
void |
upgrade(ManagedAsyncClientConnection conn,
HttpHost host,
java.lang.Object attachment)
Upgrades transport security of the given managed connection
by using the TLS security protocol.
|
java.util.concurrent.Future<ManagedAsyncClientConnection> connect(ConnectionInitiator connectionInitiator, HttpHost host, java.net.SocketAddress localAddress, Timeout connectTimeout, java.lang.Object attachment, <any> callback)
ConnectionInitiator.connectionInitiator - the connection initiator.host - the address of the opposite endpoint.localAddress - the address of the local endpoint.connectTimeout - the timeout of the connect operation.attachment - the attachment, which can be any object representing custom parameter
of the operation.callback - the future result callback.void upgrade(ManagedAsyncClientConnection conn, HttpHost host, java.lang.Object attachment)
conn - the managed connection.host - the address of the opposite endpoint with TLS security.attachment - the attachment, which can be any object representing custom parameter
of the operation.