@Contract(threading=SAFE_CONDITIONAL) @Internal public final class InternalHttpAsyncClient extends CloseableHttpAsyncClient
CloseableHttpAsyncClient that can negotiate
the most optimal HTTP protocol version during during the TLS handshake
with ALPN extension if supported by the Java runtime.
Concurrent message exchanges executed by this client will get assigned to separate connections leased from the connection pool.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
awaitShutdown(TimeValue waitTime) |
void |
close() |
void |
close(CloseMode closeMode)
Closes this process or endpoint and releases any system resources associated
with it.
|
protected <T> Future<T> |
doExecute(HttpHost httpHost,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback) |
IOReactorStatus |
getStatus() |
void |
initiateShutdown() |
void |
register(String hostname,
String uriPattern,
Supplier<AsyncPushConsumer> supplier) |
void |
start() |
protected <T> Future<T> doExecute(HttpHost httpHost, AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context, FutureCallback<T> callback)
doExecute 在类中 CloseableHttpAsyncClientpublic final void start()
start 在类中 CloseableHttpAsyncClientpublic void register(String hostname, String uriPattern, Supplier<AsyncPushConsumer> supplier)
register 在类中 CloseableHttpAsyncClientpublic final IOReactorStatus getStatus()
getStatus 在类中 CloseableHttpAsyncClientpublic final void awaitShutdown(TimeValue waitTime) throws InterruptedException
awaitShutdown 在类中 CloseableHttpAsyncClientInterruptedExceptionpublic final void initiateShutdown()
initiateShutdown 在类中 CloseableHttpAsyncClientpublic final void close(CloseMode closeMode)
ModalCloseablecloseMode - How to close the receiver.public void close()
Copyright © 2023. All rights reserved.