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

public final Class InternalH2AsyncClient

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, org.apache.hc.client5.http.cookie.CookieSpecFactory, .CookieStore, 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 HTTP/2 only CloseableHttpAsyncClient.

Concurrent message exchanges with the same connection route executed by this client will get automatically multiplexed over a single physical HTTP/2 connection.

Since
5.0

Field Summary

Modifier and TypeField and Description
private final InternalH2ConnPool
private static final Logger
private final HttpRoutePlanner

Constructor Summary

AccessConstructor and Description
pack-priv
InternalH2AsyncClient(final DefaultConnectingIOReactor ioReactor, final AsyncExecChainElement execChain, final AsyncPushConsumerRegistry pushConsumerRegistry, final ThreadFactory threadFactory, final InternalH2ConnPool connPool, final HttpRoutePlanner routePlanner, 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

connPoolback to summary
private final InternalH2ConnPool connPool
LOGback to summary
private static final Logger LOG

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

routePlannerback to summary
private final HttpRoutePlanner routePlanner

Constructor Detail

InternalH2AsyncClientback to summary
pack-priv InternalH2AsyncClient(final DefaultConnectingIOReactor ioReactor, final AsyncExecChainElement execChain, final AsyncPushConsumerRegistry pushConsumerRegistry, final ThreadFactory threadFactory, final InternalH2ConnPool connPool, final HttpRoutePlanner routePlanner, 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