Package | Description |
---|---|
org.apache.hc.client5.http.impl.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
org.apache.hc.client5.http.nio |
Connection management APIs based on the asynchronous I/O model.
|
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator,
org.apache.hc.core5.util.Timeout timeout,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
org.apache.hc.core5.util.Timeout requestTimeout,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator,
org.apache.hc.core5.util.Timeout timeout,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
void |
PoolingAsyncClientConnectionManager.release(AsyncConnectionEndpoint endpoint,
Object state,
org.apache.hc.core5.util.TimeValue keepAlive) |
void |
PoolingAsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
PoolingAsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator,
org.apache.hc.core5.util.Timeout timeout,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
org.apache.hc.core5.util.Timeout requestTimeout,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
void |
PoolingAsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) |
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator,
org.apache.hc.core5.util.Timeout connectTimeout,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Connects the endpoint to the initial hop (connection target in case
of a direct route or to the first proxy hop in case of a route via a proxy
or multiple proxies).
|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
org.apache.hc.core5.util.Timeout requestTimeout,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Returns a
Future object which can be used to obtain
an AsyncConnectionEndpoint or to cancel the request by calling
Future.cancel(boolean) . |
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator,
org.apache.hc.core5.util.Timeout connectTimeout,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Connects the endpoint to the initial hop (connection target in case
of a direct route or to the first proxy hop in case of a route via a proxy
or multiple proxies).
|
void |
AsyncClientConnectionManager.release(AsyncConnectionEndpoint endpoint,
Object newState,
org.apache.hc.core5.util.TimeValue validDuration)
Releases the endpoint back to the manager making it potentially
re-usable by other consumers.
|
void |
AsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context)
Upgrades transport security of the given endpoint by using the TLS security protocol.
|
default void |
AsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Upgrades transport security of the given endpoint by using the TLS security protocol.
|
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
org.apache.hc.core5.reactor.ConnectionInitiator connectionInitiator,
org.apache.hc.core5.util.Timeout connectTimeout,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Connects the endpoint to the initial hop (connection target in case
of a direct route or to the first proxy hop in case of a route via a proxy
or multiple proxies).
|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
org.apache.hc.core5.util.Timeout requestTimeout,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Returns a
Future object which can be used to obtain
an AsyncConnectionEndpoint or to cancel the request by calling
Future.cancel(boolean) . |
default void |
AsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context,
org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)
Upgrades transport security of the given endpoint by using the TLS security protocol.
|
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.