Top Description Fields Constructors Methods
org.apache.hc.client5.http.impl.async

public final Class InternalHttpAsyncClient

extends InternalAbstractHttpAsyncClient
Class Inheritance
Annotations
@Contract
threading:SAFE_CONDITIONAL
@Internal
Imports
java.io.Closeable, java.util.List, java.util.concurrent.ThreadFactory, org.apache.hc.client5.http.HttpRoute, org.apache.hc.client5.http.async.AsyncExecRuntime, org.apache.hc.client5.http.auth.AuthSchemeFactory, .CredentialsProvider, org.apache.hc.client5.http.config.RequestConfig, .TlsConfig, org.apache.hc.client5.http.cookie.CookieSpecFactory, .CookieStore, org.apache.hc.client5.http.nio.AsyncClientConnectionManager, org.apache.hc.client5.http.protocol.HttpClientContext, org.apache.hc.client5.http.routing.HttpRoutePlanner, org.apache.hc.core5.annotation.Contract, .Internal, .ThreadingBehavior, org.apache.hc.core5.http.HttpException, .HttpHost, org.apache.hc.core5.http.config.Lookup, org.apache.hc.core5.http.nio.AsyncPushConsumer, .HandlerFactory, org.apache.hc.core5.reactor.DefaultConnectingIOReactor, org.slf4j.Logger, .LoggerFactory

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

Field Summary

Modifier and TypeField and Description
private static final Logger
private final AsyncClientConnectionManager
private final HttpRoutePlanner
private final TlsConfig

Constructor Summary

AccessConstructor and Description
pack-priv
InternalHttpAsyncClient(final DefaultConnectingIOReactor ioReactor, final AsyncExecChainElement execChain, final AsyncPushConsumerRegistry pushConsumerRegistry, final ThreadFactory threadFactory, final AsyncClientConnectionManager manager, final HttpRoutePlanner routePlanner, final TlsConfig tlsConfig, final Lookup<CookieSpecFactory> cookieSpecRegistry, final Lookup<AuthSchemeFactory> authSchemeRegistry, final CookieStore cookieStore, final CredentialsProvider credentialsProvider, final RequestConfig defaultConfig, final List<Closeable> closeables)

Method Summary

Modifier and TypeMethod and Description
pack-priv AsyncExecRuntime
pack-priv HttpRoute
Inherited from org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient:
doExecuteexecuteImmediateexecuteScheduledinternalClose

Field Detail

LOGback to summary
private static final Logger LOG

Hides org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient.LOG.

managerback to summary
private final AsyncClientConnectionManager manager
routePlannerback to summary
private final HttpRoutePlanner routePlanner
tlsConfigback to summary
private final TlsConfig tlsConfig

Constructor Detail

InternalHttpAsyncClientback to summary
pack-priv InternalHttpAsyncClient(final DefaultConnectingIOReactor ioReactor, final AsyncExecChainElement execChain, final AsyncPushConsumerRegistry pushConsumerRegistry, final ThreadFactory threadFactory, final AsyncClientConnectionManager manager, final HttpRoutePlanner routePlanner, final TlsConfig tlsConfig, final Lookup<CookieSpecFactory> cookieSpecRegistry, final Lookup<AuthSchemeFactory> authSchemeRegistry, final CookieStore cookieStore, final CredentialsProvider credentialsProvider, final RequestConfig defaultConfig, final List<Closeable> closeables)

Method Detail

createAsyncExecRuntimeback to summary
pack-priv AsyncExecRuntime createAsyncExecRuntime(final HandlerFactory<AsyncPushConsumer> pushHandlerFactory)

Implements abstract org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient.createAsyncExecRuntime.

Annotations
@Override
determineRouteback to summary
pack-priv HttpRoute determineRoute(final HttpHost httpHost, final HttpClientContext clientContext) throws HttpException

Implements abstract org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient.determineRoute.

Annotations
@Override