Top Description Methods
org.apache.hc.client5.http.nio

public Interface AsyncClientConnectionOperator

Known Direct Implementers
org.apache.hc.client5.http.impl.nio.DefaultAsyncClientConnectionOperator
Annotations
@Contract
threading:STATELESS
@Internal
Imports
java.net.SocketAddress, java.util.concurrent.Future, org.apache.hc.core5.annotation.Contract, .Internal, .ThreadingBehavior, org.apache.hc.core5.concurrent.FutureCallback, org.apache.hc.core5.http.HttpHost, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.reactor.ConnectionInitiator, org.apache.hc.core5.util.Timeout

Connection operator that performs connection connect and upgrade operations.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public Future<ManagedAsyncClientConnection>
connect(ConnectionInitiator
the connection initiator.
connectionInitiator
,
HttpHost
the address of the opposite endpoint.
host
,
SocketAddress
the address of the local endpoint.
localAddress
,
Timeout
the timeout of the connect operation.
connectTimeout
,
Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
FutureCallback<ManagedAsyncClientConnection>
the future result callback.
callback
)

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.

public default Future<ManagedAsyncClientConnection>
connect(ConnectionInitiator
the connection initiator.
connectionInitiator
,
HttpHost
the address of the opposite endpoint.
host
,
SocketAddress
the address of the local endpoint.
localAddress
,
Timeout
the timeout of the connect operation.
connectTimeout
,
Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
HttpContext
the execution context.
context
,
FutureCallback<ManagedAsyncClientConnection>
the future result callback.
callback
)

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.

public void
upgrade(ManagedAsyncClientConnection
the managed connection.
conn
,
HttpHost
the address of the opposite endpoint with TLS security.
host
,
Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
)

Upgrades transport security of the given managed connection by using the TLS security protocol.

public default void
upgrade(ManagedAsyncClientConnection
the managed connection.
conn
,
HttpHost
the address of the opposite endpoint with TLS security.
host
,
Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
HttpContext
the execution context.
context
,
FutureCallback<ManagedAsyncClientConnection>
the future result callback.
callback
)

Upgrades transport security of the given managed connection by using the TLS security protocol.

public default void
upgrade(ManagedAsyncClientConnection
the managed connection.
conn
,
HttpHost
the address of the opposite endpoint with TLS security.
host
,
Object
the attachment, which can be any object representing custom parameter of the operation.
attachment
,
HttpContext
the execution context.
context
)

Upgrades transport security of the given managed connection by using the TLS security protocol.

Method Detail

connectback to summary
public Future<ManagedAsyncClientConnection> connect(ConnectionInitiator connectionInitiator, HttpHost host, SocketAddress localAddress, Timeout connectTimeout, Object attachment, FutureCallback<ManagedAsyncClientConnection> callback)

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.

Parameters
connectionInitiator:ConnectionInitiator

the connection initiator.

host:HttpHost

the address of the opposite endpoint.

localAddress:SocketAddress

the address of the local endpoint.

connectTimeout:Timeout

the timeout of the connect operation.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

callback:FutureCallback<ManagedAsyncClientConnection>

the future result callback.

connectback to summary
public default Future<ManagedAsyncClientConnection> connect(ConnectionInitiator connectionInitiator, HttpHost host, SocketAddress localAddress, Timeout connectTimeout, Object attachment, HttpContext context, FutureCallback<ManagedAsyncClientConnection> callback)

Initiates operation to create a connection to the remote endpoint using the provided ConnectionInitiator.

Parameters
connectionInitiator:ConnectionInitiator

the connection initiator.

host:HttpHost

the address of the opposite endpoint.

localAddress:SocketAddress

the address of the local endpoint.

connectTimeout:Timeout

the timeout of the connect operation.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

context:HttpContext

the execution context.

callback:FutureCallback<ManagedAsyncClientConnection>

the future result callback.

Since
5.2
upgradeback to summary
public void upgrade(ManagedAsyncClientConnection conn, HttpHost host, Object attachment)

Upgrades transport security of the given managed connection by using the TLS security protocol.

Parameters
conn:ManagedAsyncClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

upgradeback to summary
public default void upgrade(ManagedAsyncClientConnection conn, HttpHost host, Object attachment, HttpContext context, FutureCallback<ManagedAsyncClientConnection> callback)

Upgrades transport security of the given managed connection by using the TLS security protocol.

Parameters
conn:ManagedAsyncClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

context:HttpContext

the execution context.

callback:FutureCallback<ManagedAsyncClientConnection>

the future result callback.

Since
5.2
upgradeback to summary
public default void upgrade(ManagedAsyncClientConnection conn, HttpHost host, Object attachment, HttpContext context)

Upgrades transport security of the given managed connection by using the TLS security protocol.

Parameters
conn:ManagedAsyncClientConnection

the managed connection.

host:HttpHost

the address of the opposite endpoint with TLS security.

attachment:Object

the attachment, which can be any object representing custom parameter of the operation.

context:HttpContext

the execution context.

Since
5.2