public class H2AsyncRequester extends HttpAsyncRequester
Constructor and Description |
---|
H2AsyncRequester(HttpVersionPolicy versionPolicy,
IOReactorConfig ioReactorConfig,
IOEventHandlerFactory eventHandlerFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
ManagedConnPool<HttpHost,IOSession> connPool)
Use
H2RequesterBootstrap to create instances of this class. |
Modifier and Type | Method and Description |
---|---|
Future<IOSession> |
connect(NamedEndpoint arg0,
SocketAddress arg1,
SocketAddress arg2,
Timeout arg3,
Object arg4,
FutureCallback<IOSession> arg5) |
protected Future<AsyncClientEndpoint> |
doConnect(HttpHost host,
Timeout timeout,
Object attachment,
FutureCallback<AsyncClientEndpoint> callback) |
closeExpired, closeIdle, connect, connect, execute, execute, execute, execute, execute, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getRoutes, getStats, getTotalStats, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal
awaitShutdown, close, close, getStatus, initiateShutdown, requestSession, start
@Internal public H2AsyncRequester(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool)
H2RequesterBootstrap
to create instances of this class.protected Future<AsyncClientEndpoint> doConnect(HttpHost host, Timeout timeout, Object attachment, FutureCallback<AsyncClientEndpoint> callback)
doConnect
in class HttpAsyncRequester
public final Future<IOSession> connect(NamedEndpoint arg0, SocketAddress arg1, SocketAddress arg2, Timeout arg3, Object arg4, FutureCallback<IOSession> arg5)
connect
in interface ConnectionInitiator
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.