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,
ConnectionInitiator connectionInitiator,
Timeout timeout,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback) |
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
Timeout requestTimeout,
FutureCallback<AsyncConnectionEndpoint> callback) |
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
ConnectionInitiator connectionInitiator,
Timeout timeout,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback) |
void |
PoolingAsyncClientConnectionManager.release(AsyncConnectionEndpoint endpoint,
Object state,
TimeValue keepAlive) |
void |
PoolingAsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
HttpContext context) |
void |
PoolingAsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback) |
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
ConnectionInitiator connectionInitiator,
Timeout timeout,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback) |
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
Timeout requestTimeout,
FutureCallback<AsyncConnectionEndpoint> callback) |
void |
PoolingAsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback) |
Modifier and Type | Method and Description |
---|---|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
ConnectionInitiator connectionInitiator,
Timeout connectTimeout,
Object attachment,
HttpContext context,
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,
Timeout requestTimeout,
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,
ConnectionInitiator connectionInitiator,
Timeout connectTimeout,
Object attachment,
HttpContext context,
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,
TimeValue validDuration)
Releases the endpoint back to the manager making it potentially
re-usable by other consumers.
|
void |
AsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
HttpContext context)
Upgrades transport security of the given endpoint by using the TLS security protocol.
|
default void |
AsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
HttpContext context,
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,
ConnectionInitiator connectionInitiator,
Timeout connectTimeout,
Object attachment,
HttpContext context,
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,
Timeout requestTimeout,
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,
HttpContext context,
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.