Top Description Fields Constructors Methods
org.apache.hc.core5.http2.impl.nio.bootstrap

public Class H2AsyncRequester

extends HttpAsyncRequester
Class Inheritance
Imports
java.util.concurrent.Future, org.apache.hc.core5.annotation.Internal, org.apache.hc.core5.concurrent.CallbackContribution, .FutureCallback, org.apache.hc.core5.function.Callback, .Decorator, org.apache.hc.core5.http.HttpHost, org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester, org.apache.hc.core5.http.nio.AsyncClientEndpoint, org.apache.hc.core5.http.nio.ssl.TlsStrategy, org.apache.hc.core5.http2.HttpVersionPolicy, org.apache.hc.core5.http2.ssl.ApplicationProtocol, org.apache.hc.core5.net.NamedEndpoint, org.apache.hc.core5.pool.ManagedConnPool, org.apache.hc.core5.reactor.IOEventHandlerFactory, .IOReactorConfig, .IOSession, .IOSessionListener, .ProtocolIOSession, org.apache.hc.core5.reactor.ssl.TlsDetails, org.apache.hc.core5.util.Timeout

Client side message exchange initiator capable of negotiating HTTP/2 or HTTP/1.1 compatible connections.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final HttpVersionPolicy

Constructor Summary

AccessConstructor and Description
public
H2AsyncRequester(final HttpVersionPolicy versionPolicy, final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool)

Use H2RequesterBootstrap to create instances of this class.

public
H2AsyncRequester(final HttpVersionPolicy versionPolicy, final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool, final TlsStrategy tlsStrategy, final Timeout handshakeTimeout)

Use H2RequesterBootstrap to create instances of this class.

Method Summary

Modifier and TypeMethod and Description
protected Future<AsyncClientEndpoint>
protected void
Inherited from org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester:
closeExpiredcloseIdleconnectconnectexecuteexecuteexecuteexecuteexecutegetDefaultMaxPerRoutegetMaxPerRoutegetMaxTotalgetRoutesgetStatsgetTotalStatssetDefaultMaxPerRoutesetMaxPerRoutesetMaxTotal

Field Detail

versionPolicyback to summary
private final HttpVersionPolicy versionPolicy

Constructor Detail

H2AsyncRequesterback to summary
public H2AsyncRequester(final HttpVersionPolicy versionPolicy, final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool)

Use H2RequesterBootstrap to create instances of this class.

Annotations
@Internal
H2AsyncRequesterback to summary
public H2AsyncRequester(final HttpVersionPolicy versionPolicy, final IOReactorConfig ioReactorConfig, final IOEventHandlerFactory eventHandlerFactory, final Decorator<IOSession> ioSessionDecorator, final Callback<Exception> exceptionCallback, final IOSessionListener sessionListener, final ManagedConnPool<HttpHost, IOSession> connPool, final TlsStrategy tlsStrategy, final Timeout handshakeTimeout)

Use H2RequesterBootstrap to create instances of this class.

Annotations
@Internal
Since
5.2

Method Detail

doConnectback to summary
protected Future<AsyncClientEndpoint> doConnect(final HttpHost host, final Timeout timeout, final Object attachment, final FutureCallback<AsyncClientEndpoint> callback)

Overrides org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester.doConnect.

Annotations
@Override
doTlsUpgradeback to summary
protected void doTlsUpgrade(final ProtocolIOSession ioSession, final NamedEndpoint endpoint, final FutureCallback<ProtocolIOSession> callback)

Overrides org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester.doTlsUpgrade.

Annotations
@Override