Uses of Interface
org.apache.hc.core5.reactor.IOSession
-
Packages that use IOSession Package Description org.apache.hc.core5.http.impl.bootstrap HTTP/1.1 requester and server bootstrap.org.apache.hc.core5.http.nio.command Commands for HTTP transports based on asynchronous, event driven I/O model.org.apache.hc.core5.reactor Event driven network communication APIs and components loosely based on Doug Lea's reactor pattern.org.apache.hc.core5.reactor.ssl TLS/SSL support for I/O reactors. -
-
Uses of IOSession in org.apache.hc.core5.http.impl.bootstrap
Methods in org.apache.hc.core5.http.impl.bootstrap that return types with arguments of type IOSession Modifier and Type Method Description java.util.concurrent.Future<IOSession>AsyncRequester. requestSession(HttpHost host, Timeout timeout, java.lang.Object attachment, FutureCallback<IOSession> callback)Method parameters in org.apache.hc.core5.http.impl.bootstrap with type arguments of type IOSession Modifier and Type Method Description java.util.concurrent.Future<IOSession>AsyncRequester. requestSession(HttpHost host, Timeout timeout, java.lang.Object attachment, FutureCallback<IOSession> callback)AsyncRequesterBootstrapAsyncRequesterBootstrap. setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)AsyncServerBootstrapAsyncServerBootstrap. setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)Constructor parameters in org.apache.hc.core5.http.impl.bootstrap with type arguments of type IOSession Constructor Description AsyncRequester(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback, Resolver<HttpHost,java.net.InetSocketAddress> addressResolver, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector)AsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, Callback<IOSession> sessionShutdownCallback, IOWorkerSelector workerSelector)HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector, int maxPendingCommandsPerConnection)UseAsyncRequesterBootstrapto create instances of this class.HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector, int maxPendingCommandsPerConnection)UseAsyncRequesterBootstrapto create instances of this class.HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector, java.lang.String canonicalName)UseAsyncServerBootstrapto create instances of this class. -
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 IOSession Modifier and Type Field Description static Callback<IOSession>ShutdownCommand. GRACEFUL_IMMEDIATE_CALLBACKstatic Callback<IOSession>ShutdownCommand. GRACEFUL_NORMAL_CALLBACKMethods in org.apache.hc.core5.http.nio.command with parameters of type IOSession Modifier and Type Method Description static voidCommandSupport. cancelCommands(IOSession ioSession)Cancels all pending sessionCommands.static voidCommandSupport. failCommands(IOSession ioSession, java.lang.Exception ex)Fails all pending sessionCommands. -
Uses of IOSession in org.apache.hc.core5.reactor
Subinterfaces of IOSession in org.apache.hc.core5.reactor Modifier and Type Interface Description interfaceProtocolIOSessionTLS capable, protocol upgradableIOSession.Methods in org.apache.hc.core5.reactor that return types with arguments of type IOSession Modifier and Type Method Description java.util.concurrent.Future<IOSession>ConnectionInitiator. connect(NamedEndpoint remoteEndpoint, java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, Timeout timeout, java.lang.Object attachment, FutureCallback<IOSession> callback)Requests a connection to a remote host.protected abstract java.util.concurrent.Future<IOSession>AbstractIOSessionPool. connectSession(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)java.util.concurrent.Future<IOSession>AbstractIOSessionPool. getSession(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)Methods in org.apache.hc.core5.reactor with parameters of type IOSession Modifier and Type Method Description protected abstract voidAbstractIOSessionPool. closeSession(IOSession ioSession, CloseMode closeMode)voidIOEventHandler. connected(IOSession session)Triggered after the given session has been just created.voidIOSessionListener. connected(IOSession session)voidIOEventHandler. disconnected(IOSession session)Triggered when the given session has been terminated.voidIOSessionListener. disconnected(IOSession session)voidIOEventHandler. exception(IOSession session, java.lang.Exception cause)Triggered when the given session throws a exception.voidIOSessionListener. exception(IOSession session, java.lang.Exception ex)voidIOEventHandler. inputReady(IOSession session, java.nio.ByteBuffer src)Triggered when the given session has input pending.voidIOSessionListener. inputReady(IOSession session)protected booleanAbstractIOSessionPool. isExpired(T endpoint, IOSession session)Tests if the given session has expired.protected booleanAbstractIOSessionPool. isIdle(IOSession session)Tests if the given session is idle.voidIOEventHandler. outputReady(IOSession session)Triggered when the given session is ready for output.voidIOSessionListener. outputReady(IOSession session)voidIOSessionListener. startTls(IOSession session)voidIOEventHandler. timeout(IOSession session, Timeout timeout)Triggered when the given session has timed out.voidIOSessionListener. timeout(IOSession session)protected voidAbstractIOSessionPool. validateSession(IOSession ioSession, Callback<java.lang.Boolean> callback)Deprecated.protected voidAbstractIOSessionPool. validateSession(T endpoint, IOSession ioSession, Callback<java.lang.Boolean> callback)Method parameters in org.apache.hc.core5.reactor with type arguments of type IOSession Modifier and Type Method Description java.util.concurrent.Future<IOSession>ConnectionInitiator. connect(NamedEndpoint remoteEndpoint, java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, Timeout timeout, java.lang.Object attachment, FutureCallback<IOSession> callback)Requests a connection to a remote host.protected abstract java.util.concurrent.Future<IOSession>AbstractIOSessionPool. connectSession(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)voidAbstractIOSessionPool. enumAvailable(java.util.function.BiConsumer<T,IOSession> consumer)voidAbstractIOSessionPool. enumAvailable(Callback<IOSession> callback)Deprecated.java.util.concurrent.Future<IOSession>AbstractIOSessionPool. getSession(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)Constructor parameters in org.apache.hc.core5.reactor with type arguments of type IOSession Constructor Description DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback, IOFunction<java.net.SocketAddress,java.nio.channels.SocketChannel> socketChannelFactory)DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, Callback<IOSession> sessionShutdownCallback, IOWorkerSelector workerSelector)DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, Callback<IOSession> sessionShutdownCallback, IOWorkerSelector workerSelector, IOFunction<java.net.SocketAddress,java.nio.channels.SocketChannel> socketChannelFactory)DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, Callback<IOSession> sessionShutdownCallback)DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, Callback<IOSession> sessionShutdownCallback, IOFunction<java.net.SocketAddress,java.nio.channels.SocketChannel> socketChannelFactory)Creates an instance with a custom socket channel factory.DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory dispatchThreadFactory, java.util.concurrent.ThreadFactory listenerThreadFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)Creates an instance of DefaultListeningIOReactor with the given configuration.DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory dispatchThreadFactory, java.util.concurrent.ThreadFactory listenerThreadFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, Callback<IOSession> sessionShutdownCallback, IOWorkerSelector workerSelector)DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, Callback<IOSession> sessionShutdownCallback)Creates an instance of DefaultListeningIOReactor with the given configuration. -
Uses of IOSession in org.apache.hc.core5.reactor.ssl
Classes in org.apache.hc.core5.reactor.ssl that implement IOSession Modifier and Type Class Description classSSLIOSessionSSLIOSessionis a decorator class intended to transparently extend anIOSessionwith transport layer security capabilities based on the SSL/TLS protocol.Methods in org.apache.hc.core5.reactor.ssl with parameters of type IOSession Modifier and Type Method Description voidSSLIOSession. beginHandshake(IOSession protocolSession)Constructors in org.apache.hc.core5.reactor.ssl with parameters of type IOSession Constructor Description SSLIOSession(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, javax.net.ssl.SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, Timeout connectTimeout)Creates new instance ofSSLIOSessionclass.SSLIOSession(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, javax.net.ssl.SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, FutureCallback<javax.net.ssl.SSLSession> resultCallback)Creates new instance ofSSLIOSessionclass.
-