Uses of Interface
org.apache.hc.core5.reactor.IOSession
Packages that use IOSession
Package
Description
HTTP/1.1 requester and server bootstrap.
Default implementation of HTTP/1.1 transport based on
the asynchronous (non-blocking) I/O model.
Commands for HTTP transports based on asynchronous, event driven I/O model.
Default implementation of HTTP/2 transport based on
the asynchronous (non-blocking) I/O model.
HTTP/2 capable requester and server bootstrap.
HTTP/2 specific pool component APIs.
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
TLS/SSL support for I/O reactors.
-
Uses of IOSession in org.apache.hc.core5.http.impl.bootstrap
Fields in org.apache.hc.core5.http.impl.bootstrap with type parameters of type IOSessionModifier and TypeFieldDescriptionprivate final ManagedConnPool
<HttpHost, IOSession> HttpAsyncRequester.connPool
AsyncRequesterBootstrap.ioSessionDecorator
AsyncServerBootstrap.ioSessionDecorator
(package private) final AtomicReference
<PoolEntry<HttpHost, IOSession>> HttpAsyncRequester.InternalAsyncClientEndpoint.poolEntryRef
Methods in org.apache.hc.core5.http.impl.bootstrap that return IOSessionModifier and TypeMethodDescriptionprivate IOSession
HttpAsyncRequester.InternalAsyncClientEndpoint.getIOSession()
Methods in org.apache.hc.core5.http.impl.bootstrap that return types with arguments of type IOSessionModifier and TypeMethodDescriptionAbstractConnectionInitiatorBase.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) AsyncRequester.requestSession
(HttpHost host, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) Method parameters in org.apache.hc.core5.http.impl.bootstrap with type arguments of type IOSessionModifier and TypeMethodDescriptionAbstractConnectionInitiatorBase.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) AsyncRequester.requestSession
(HttpHost host, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) final AsyncRequesterBootstrap
AsyncRequesterBootstrap.setIOSessionDecorator
(Decorator<IOSession> ioSessionDecorator) final AsyncServerBootstrap
AsyncServerBootstrap.setIOSessionDecorator
(Decorator<IOSession> ioSessionDecorator) Constructor parameters in org.apache.hc.core5.http.impl.bootstrap with type arguments of type IOSessionModifierConstructorDescriptionAsyncRequester
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback, Resolver<HttpHost, InetSocketAddress> addressResolver) AsyncServer
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback) HttpAsyncRequester
(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool) UseAsyncRequesterBootstrap
to create instances of this class.HttpAsyncRequester
(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool) UseAsyncRequesterBootstrap
to create instances of this class.HttpAsyncRequester
(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout) UseAsyncRequesterBootstrap
to create instances of this class.HttpAsyncRequester
(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout) UseAsyncRequesterBootstrap
to create instances of this class.HttpAsyncServer
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener) UseAsyncServerBootstrap
to create instances of this class.HttpAsyncServer
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, String canonicalName) UseAsyncServerBootstrap
to create instances of this class.(package private)
InternalAsyncClientEndpoint
(PoolEntry<HttpHost, IOSession> poolEntry) -
Uses of IOSession in org.apache.hc.core5.http.impl.nio
Fields in org.apache.hc.core5.http.impl.nio declared as IOSessionModifier and TypeFieldDescriptionprivate final IOSession
AbstractHttp1StreamDuplexer.CapacityWindow.ioSession
Methods in org.apache.hc.core5.http.impl.nio with parameters of type IOSessionModifier and TypeMethodDescriptionvoid
void
AbstractHttp1IOEventHandler.disconnected
(IOSession session) void
void
AbstractHttp1IOEventHandler.inputReady
(IOSession session, ByteBuffer src) void
AbstractHttp1IOEventHandler.outputReady
(IOSession session) void
Constructors in org.apache.hc.core5.http.impl.nio with parameters of type IOSession -
Uses of IOSession in org.apache.hc.core5.http.nio.command
Fields in org.apache.hc.core5.http.nio.command with type parameters of type IOSessionModifier and TypeFieldDescriptionShutdownCommand.GRACEFUL_IMMEDIATE_CALLBACK
ShutdownCommand.GRACEFUL_NORMAL_CALLBACK
Methods in org.apache.hc.core5.http.nio.command that return types with arguments of type IOSessionModifier and TypeMethodDescriptionShutdownCommand.createIOSessionCallback
(Command.Priority priority) Methods in org.apache.hc.core5.http.nio.command with parameters of type IOSessionModifier and TypeMethodDescriptionstatic void
CommandSupport.cancelCommands
(IOSession ioSession) Cancels all pending sessionCommand
s.static void
CommandSupport.failCommands
(IOSession ioSession, Exception ex) Fails all pending sessionCommand
s. -
Uses of IOSession in org.apache.hc.core5.http2.impl.nio
Methods in org.apache.hc.core5.http2.impl.nio with parameters of type IOSessionModifier and TypeMethodDescriptionvoid
void
void
void
void
AbstractH2IOEventHandler.disconnected
(IOSession session) void
HttpProtocolNegotiator.disconnected
(IOSession session) void
PrefaceHandlerBase.disconnected
(IOSession session) void
void
void
void
AbstractH2IOEventHandler.inputReady
(IOSession session, ByteBuffer src) void
ClientH2PrefaceHandler.inputReady
(IOSession session, ByteBuffer src) void
HttpProtocolNegotiator.inputReady
(IOSession session, ByteBuffer src) void
ServerH2PrefaceHandler.inputReady
(IOSession session, ByteBuffer src) void
AbstractH2IOEventHandler.outputReady
(IOSession session) void
ClientH2PrefaceHandler.outputReady
(IOSession session) void
HttpProtocolNegotiator.outputReady
(IOSession session) void
ServerH2PrefaceHandler.outputReady
(IOSession session) void
void
void
private void
ClientH2PrefaceHandler.writeOutPreface
(IOSession session) -
Uses of IOSession in org.apache.hc.core5.http2.impl.nio.bootstrap
Fields in org.apache.hc.core5.http2.impl.nio.bootstrap with type parameters of type IOSessionModifier and TypeFieldDescriptionH2MultiplexingRequesterBootstrap.ioSessionDecorator
H2RequesterBootstrap.ioSessionDecorator
H2ServerBootstrap.ioSessionDecorator
Method parameters in org.apache.hc.core5.http2.impl.nio.bootstrap with type arguments of type IOSessionModifier and TypeMethodDescriptionH2MultiplexingRequesterBootstrap.setIOSessionDecorator
(Decorator<IOSession> ioSessionDecorator) final H2RequesterBootstrap
H2RequesterBootstrap.setIOSessionDecorator
(Decorator<IOSession> ioSessionDecorator) final H2ServerBootstrap
H2ServerBootstrap.setIOSessionDecorator
(Decorator<IOSession> ioSessionDecorator) Constructor parameters in org.apache.hc.core5.http2.impl.nio.bootstrap with type arguments of type IOSessionModifierConstructorDescriptionH2AsyncRequester
(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool) UseH2RequesterBootstrap
to create instances of this class.H2AsyncRequester
(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool) UseH2RequesterBootstrap
to create instances of this class.H2AsyncRequester
(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout) UseH2RequesterBootstrap
to create instances of this class.H2AsyncRequester
(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout) UseH2RequesterBootstrap
to create instances of this class.H2MultiplexingRequester
(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Resolver<HttpHost, InetSocketAddress> addressResolver, TlsStrategy tlsStrategy) UseH2MultiplexingRequesterBootstrap
to create instances of this class. -
Uses of IOSession in org.apache.hc.core5.http2.nio.pool
Methods in org.apache.hc.core5.http2.nio.pool that return types with arguments of type IOSessionModifier and TypeMethodDescriptionH2ConnPool.connectSession
(HttpHost namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) Methods in org.apache.hc.core5.http2.nio.pool with parameters of type IOSessionModifier and TypeMethodDescriptionprotected void
H2ConnPool.closeSession
(IOSession ioSession, CloseMode closeMode) protected void
H2ConnPool.validateSession
(IOSession ioSession, Callback<Boolean> callback) Method parameters in org.apache.hc.core5.http2.nio.pool with type arguments of type IOSessionModifier and TypeMethodDescriptionH2ConnPool.connectSession
(HttpHost namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) -
Uses of IOSession in org.apache.hc.core5.reactor
Subinterfaces of IOSession in org.apache.hc.core5.reactorClasses in org.apache.hc.core5.reactor that implement IOSessionModifier and TypeClassDescription(package private) final class
(package private) class
Fields in org.apache.hc.core5.reactor declared as IOSessionModifier and TypeFieldDescriptionprivate final IOSession
InternalDataChannel.ioSession
(package private) IOSession
AbstractIOSessionPool.PoolEntry.session
Fields in org.apache.hc.core5.reactor with type parameters of type IOSessionModifier and TypeFieldDescriptionprivate final AtomicReference
<IOSession> InternalDataChannel.currentSessionRef
(package private) final BasicFuture
<IOSession> IOSessionRequest.future
InternalDataChannel.ioSessionDecorator
SingleCoreIOReactor.ioSessionDecorator
(package private) final Queue
<FutureCallback<IOSession>> AbstractIOSessionPool.PoolEntry.requestQueue
AbstractIOSessionPool.PoolEntry.sessionFuture
SingleCoreIOReactor.sessionShutdownCallback
Methods in org.apache.hc.core5.reactor that return IOSessionMethods in org.apache.hc.core5.reactor that return types with arguments of type IOSessionModifier and TypeMethodDescriptionAbstractIOReactorBase.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) ConnectionInitiator.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) Requests a connection to a remote host.SingleCoreIOReactor.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) AbstractIOSessionPool.connectSession
(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) AbstractIOSessionPool.getSession
(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) Methods in org.apache.hc.core5.reactor with parameters of type IOSessionModifier and TypeMethodDescriptionprotected abstract void
AbstractIOSessionPool.closeSession
(IOSession ioSession, CloseMode closeMode) void
Triggered after the given session has been just created.void
void
void
IOEventHandler.disconnected
(IOSession session) Triggered when the given session has been terminated.void
IOSessionListener.disconnected
(IOSession session) void
SocksProxyProtocolHandler.disconnected
(IOSession session) private IOEventHandler
InternalDataChannel.ensureHandler
(IOSession session) void
Triggered when the given session throws a exception.void
void
void
IOEventHandler.inputReady
(IOSession session, ByteBuffer src) Triggered when the given session has input pending.void
IOSessionListener.inputReady
(IOSession session) void
SocksProxyProtocolHandler.inputReady
(IOSession session, ByteBuffer src) void
IOEventHandler.outputReady
(IOSession session) Triggered when the given session is ready for output.void
IOSessionListener.outputReady
(IOSession session) void
SocksProxyProtocolHandler.outputReady
(IOSession session) void
void
Triggered when the given session has timed out.void
void
protected abstract void
AbstractIOSessionPool.validateSession
(IOSession ioSession, Callback<Boolean> callback) Method parameters in org.apache.hc.core5.reactor with type arguments of type IOSessionModifier and TypeMethodDescriptionAbstractIOReactorBase.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) ConnectionInitiator.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) Requests a connection to a remote host.SingleCoreIOReactor.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) AbstractIOSessionPool.connectSession
(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) final void
AbstractIOSessionPool.enumAvailable
(Callback<IOSession> callback) AbstractIOSessionPool.getSession
(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) private void
AbstractIOSessionPool.getSessionInternal
(AbstractIOSessionPool.PoolEntry poolEntry, boolean requestNew, T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback) Constructors in org.apache.hc.core5.reactor with parameters of type IOSessionModifierConstructorDescription(package private)
InternalDataChannel
(IOSession ioSession, NamedEndpoint initialEndpoint, Decorator<IOSession> ioSessionDecorator, IOSessionListener sessionListener, Queue<InternalDataChannel> closedSessions) Constructor parameters in org.apache.hc.core5.reactor with type arguments of type IOSessionModifierConstructorDescriptionDefaultConnectingIOReactor
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback) DefaultConnectingIOReactor
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, Callback<IOSession> sessionShutdownCallback) DefaultListeningIOReactor
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory dispatchThreadFactory, ThreadFactory listenerThreadFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback) Creates an instance of DefaultListeningIOReactor with the given configuration.DefaultListeningIOReactor
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, Callback<IOSession> sessionShutdownCallback) Creates an instance of DefaultListeningIOReactor with the given configuration.(package private)
InternalDataChannel
(IOSession ioSession, NamedEndpoint initialEndpoint, Decorator<IOSession> ioSessionDecorator, IOSessionListener sessionListener, Queue<InternalDataChannel> closedSessions) IOSessionRequest
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) (package private)
SingleCoreIOReactor
(Callback<Exception> exceptionCallback, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig, Decorator<IOSession> ioSessionDecorator, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback) -
Uses of IOSession in org.apache.hc.core5.reactor.ssl
Classes in org.apache.hc.core5.reactor.ssl that implement IOSessionModifier and TypeClassDescriptionclass
SSLIOSession
is a decorator class intended to transparently extend anIOSession
with transport layer security capabilities based on the SSL/TLS protocol.Fields in org.apache.hc.core5.reactor.ssl declared as IOSessionMethods in org.apache.hc.core5.reactor.ssl with parameters of type IOSessionModifier and TypeMethodDescriptionvoid
SSLIOSession.beginHandshake
(IOSession protocolSession) private void
SSLIOSession.decryptData
(IOSession protocolSession) private void
SSLIOSession.doHandshake
(IOSession protocolSession) private void
SSLIOSession.encryptData
(IOSession protocolSession) private void
SSLIOSession.initialize
(IOSession protocolSession) Constructors in org.apache.hc.core5.reactor.ssl with parameters of type IOSessionModifierConstructorDescriptionSSLIOSession
(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, Timeout connectTimeout) Creates new instance ofSSLIOSession
class.SSLIOSession
(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, FutureCallback<SSLSession> resultCallback) Creates new instance ofSSLIOSession
class. -
Uses of IOSession in org.apache.hc.core5.testing.nio
Classes in org.apache.hc.core5.testing.nio that implement IOSessionFields in org.apache.hc.core5.testing.nio declared as IOSessionModifier and TypeFieldDescriptionprivate final IOSession
ClientSessionEndpoint.ioSession
private final IOSession
LoggingIOSession.session
Methods in org.apache.hc.core5.testing.nio that return IOSessionModifier and TypeMethodDescriptionMethods in org.apache.hc.core5.testing.nio that return types with arguments of type IOSessionModifier and TypeMethodDescriptionAsyncRequester.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) AsyncRequester.requestSession
(HttpHost host, Timeout timeout, FutureCallback<IOSession> callback) Methods in org.apache.hc.core5.testing.nio with parameters of type IOSessionModifier and TypeMethodDescriptionvoid
void
LoggingIOSessionListener.disconnected
(IOSession session) void
void
LoggingIOSessionListener.inputReady
(IOSession session) void
LoggingIOSessionListener.outputReady
(IOSession session) void
void
Method parameters in org.apache.hc.core5.testing.nio with type arguments of type IOSessionModifier and TypeMethodDescriptionAsyncRequester.connect
(NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, Timeout timeout, Object attachment, FutureCallback<IOSession> callback) (package private) DefaultConnectingIOReactor
AsyncRequester.createIOReactor
(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) (package private) DefaultListeningIOReactor
AsyncServer.createIOReactor
(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) (package private) abstract T
IOReactorExecutor.createIOReactor
(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) AsyncRequester.requestSession
(HttpHost host, Timeout timeout, FutureCallback<IOSession> callback) Constructors in org.apache.hc.core5.testing.nio with parameters of type IOSessionModifierConstructorDescriptionClientSessionEndpoint
(IOSession ioSession) LoggingIOSession
(IOSession session, org.slf4j.Logger log, org.slf4j.Logger wireLog)