public final class MinimalHttpAsyncClient extends CloseableHttpAsyncClient
CloseableHttpAsyncClient. This client is
optimized for HTTP/1.1 and HTTP/2 message transport and does not support
advanced HTTP protocol functionality such as request execution via a proxy,
state management, authentication and request redirects.
Concurrent message exchanges executed by this client will get assigned to separate connections leased from the connection pool.
| Modifier and Type | Method and Description |
|---|---|
void |
awaitShutdown(TimeValue waitTime) |
void |
close() |
void |
close(CloseMode closeMode) |
protected <T> java.util.concurrent.Future<T> |
doExecute(HttpHost httpHost,
AsyncRequestProducer requestProducer,
<any> responseConsumer,
<any> pushHandlerFactory,
HttpContext context,
<any> callback) |
Cancellable |
execute(AsyncClientExchangeHandler exchangeHandler) |
Cancellable |
execute(AsyncClientExchangeHandler exchangeHandler,
<any> pushHandlerFactory,
HttpContext context) |
IOReactorStatus |
getStatus() |
void |
initiateShutdown() |
java.util.concurrent.Future<AsyncClientEndpoint> |
lease(HttpHost host,
<any> callback) |
java.util.concurrent.Future<AsyncClientEndpoint> |
lease(HttpHost host,
HttpContext context,
<any> callback) |
void |
register(java.lang.String hostname,
java.lang.String uriPattern,
<any> supplier) |
void |
start() |
public java.util.concurrent.Future<AsyncClientEndpoint> lease(HttpHost host,
<any> callback)
public java.util.concurrent.Future<AsyncClientEndpoint> lease(HttpHost host,
HttpContext context,
<any> callback)
public Cancellable execute(AsyncClientExchangeHandler exchangeHandler,
<any> pushHandlerFactory,
HttpContext context)
protected <T> java.util.concurrent.Future<T> doExecute(HttpHost httpHost,
AsyncRequestProducer requestProducer,
<any> responseConsumer,
<any> pushHandlerFactory,
HttpContext context,
<any> callback)
doExecute in class CloseableHttpAsyncClientpublic final Cancellable execute(AsyncClientExchangeHandler exchangeHandler)
public final void start()
start in class CloseableHttpAsyncClientpublic void register(java.lang.String hostname,
java.lang.String uriPattern,
<any> supplier)
register in class CloseableHttpAsyncClientpublic final IOReactorStatus getStatus()
getStatus in class CloseableHttpAsyncClientpublic final void awaitShutdown(TimeValue waitTime)
throws java.lang.InterruptedException
awaitShutdown in class CloseableHttpAsyncClientjava.lang.InterruptedExceptionpublic final void initiateShutdown()
initiateShutdown in class CloseableHttpAsyncClientpublic final void close(CloseMode closeMode)
public void close()