Class InternalHttpAsyncClient
java.lang.Object
org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient
org.apache.hc.client5.http.impl.async.AbstractHttpAsyncClientBase
org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient
org.apache.hc.client5.http.impl.async.InternalHttpAsyncClient
- All Implemented Interfaces:
Closeable, AutoCloseable, HttpAsyncClient, org.apache.hc.core5.io.ModalCloseable
@Contract(threading=SAFE_CONDITIONAL)
@Internal
public final class InternalHttpAsyncClient
extends InternalAbstractHttpAsyncClient
Internal implementation of
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.
- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class InternalAbstractHttpAsyncClient
InternalAbstractHttpAsyncClient.ScheduledRequestExecutionNested classes/interfaces inherited from class AbstractHttpAsyncClientBase
AbstractHttpAsyncClientBase.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final AsyncClientConnectionManagerprivate final HttpRoutePlannerprivate final TlsConfig -
Constructor Summary
ConstructorsConstructorDescriptionInternalHttpAsyncClient(org.apache.hc.core5.reactor.DefaultConnectingIOReactor ioReactor, AsyncExecChainElement execChain, AsyncPushConsumerRegistry pushConsumerRegistry, ThreadFactory threadFactory, AsyncClientConnectionManager manager, HttpRoutePlanner routePlanner, TlsConfig tlsConfig, org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry, org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry, CookieStore cookieStore, CredentialsProvider credentialsProvider, RequestConfig defaultConfig, List<Closeable> closeables) -
Method Summary
Modifier and TypeMethodDescription(package private) AsyncExecRuntimecreateAsyncExecRuntime(org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory) (package private) HttpRoutedetermineRoute(org.apache.hc.core5.http.HttpHost httpHost, HttpClientContext clientContext) Methods inherited from class InternalAbstractHttpAsyncClient
doExecute, executeImmediate, executeScheduled, internalCloseMethods inherited from class AbstractHttpAsyncClientBase
awaitShutdown, close, close, getConnectionInitiator, getStatus, initiateShutdown, isRunning, register, start
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
manager
-
routePlanner
-
tlsConfig
-
-
Constructor Details
-
InternalHttpAsyncClient
InternalHttpAsyncClient(org.apache.hc.core5.reactor.DefaultConnectingIOReactor ioReactor, AsyncExecChainElement execChain, AsyncPushConsumerRegistry pushConsumerRegistry, ThreadFactory threadFactory, AsyncClientConnectionManager manager, HttpRoutePlanner routePlanner, TlsConfig tlsConfig, org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry, org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry, CookieStore cookieStore, CredentialsProvider credentialsProvider, RequestConfig defaultConfig, List<Closeable> closeables)
-
-
Method Details
-
createAsyncExecRuntime
AsyncExecRuntime createAsyncExecRuntime(org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushHandlerFactory) - Specified by:
createAsyncExecRuntimein classInternalAbstractHttpAsyncClient
-
determineRoute
HttpRoute determineRoute(org.apache.hc.core5.http.HttpHost httpHost, HttpClientContext clientContext) throws org.apache.hc.core5.http.HttpException - Specified by:
determineRoutein classInternalAbstractHttpAsyncClient- Throws:
org.apache.hc.core5.http.HttpException
-