Uses of Interface
org.apache.hc.core5.function.Callback
-
Packages that use Callback Package Description org.apache.hc.core5.http.impl.bootstrap HTTP/1.1 requester and server bootstrap.org.apache.hc.core5.http.io.ssl org.apache.hc.core5.http.nio.command Commands for HTTP transports based on asynchronous, event driven I/O model.org.apache.hc.core5.http.nio.entity HTTP message entity APIs based on the asynchronous (non-blocking) I/O model.org.apache.hc.core5.http.nio.support Support classes for the asynchronous I/O model.org.apache.hc.core5.http2.impl.nio.bootstrap HTTP/2 capable requester and server bootstrap.org.apache.hc.core5.http2.nio.pool HTTP/2 specific pool component APIs.org.apache.hc.core5.http2.nio.support Support classes for HTTP/2 asynchronous transport.org.apache.hc.core5.pool Client side connection pool component APIs.org.apache.hc.core5.reactive 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.org.apache.hc.core5.testing.nio org.apache.hc.core5.testing.reactive -
-
Uses of Callback in org.apache.hc.core5.http.impl.bootstrap
Fields in org.apache.hc.core5.http.impl.bootstrap declared as Callback Modifier and Type Field Description private Callback<java.lang.Exception>
AsyncRequesterBootstrap. exceptionCallback
private Callback<java.lang.Exception>
AsyncServerBootstrap. exceptionCallback
private Callback<javax.net.ssl.SSLParameters>
HttpRequester. sslSetupHandler
private Callback<javax.net.ssl.SSLParameters>
HttpServer. sslSetupHandler
private Callback<javax.net.ssl.SSLParameters>
RequesterBootstrap. sslSetupHandler
private Callback<javax.net.ssl.SSLParameters>
ServerBootstrap. sslSetupHandler
Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type Callback Modifier and Type Method Description AsyncRequesterBootstrap
AsyncRequesterBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)
AssignsException
Callback
instance.AsyncServerBootstrap
AsyncServerBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)
AssignsException
Callback
instance.RequesterBootstrap
RequesterBootstrap. setSslSetupHandler(Callback<javax.net.ssl.SSLParameters> sslSetupHandler)
AssignsCallback
forSSLParameters
.ServerBootstrap
ServerBootstrap. setSslSetupHandler(Callback<javax.net.ssl.SSLParameters> sslSetupHandler)
AssignsCallback
forSSLParameters
.Constructors in org.apache.hc.core5.http.impl.bootstrap with parameters of type Callback 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)
AsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)
HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool)
UseAsyncRequesterBootstrap
to 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)
UseAsyncRequesterBootstrap
to create instances of this class.HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener)
UseAsyncServerBootstrap
to create instances of this class.HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, java.lang.String canonicalName)
UseAsyncServerBootstrap
to create instances of this class.HttpRequester(HttpRequestExecutor requestExecutor, HttpProcessor httpProcessor, ManagedConnPool<HttpHost,HttpClientConnection> connPool, SocketConfig socketConfig, HttpConnectionFactory<? extends HttpClientConnection> connectFactory, javax.net.ssl.SSLSocketFactory sslSocketFactory, Callback<javax.net.ssl.SSLParameters> sslSetupHandler, SSLSessionVerifier sslSessionVerifier, Resolver<HttpHost,java.net.InetSocketAddress> addressResolver)
UseRequesterBootstrap
to create instances of this class.HttpServer(int port, HttpService httpService, java.net.InetAddress ifAddress, SocketConfig socketConfig, javax.net.ServerSocketFactory serverSocketFactory, HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory, Callback<javax.net.ssl.SSLParameters> sslSetupHandler, ExceptionListener exceptionListener)
-
Uses of Callback in org.apache.hc.core5.http.io.ssl
Classes in org.apache.hc.core5.http.io.ssl that implement Callback Modifier and Type Class Description class
DefaultTlsSetupHandler
Default TLS session setup handler. -
Uses of Callback in org.apache.hc.core5.http.nio.command
Fields in org.apache.hc.core5.http.nio.command declared as Callback Modifier and Type Field Description static Callback<IOSession>
ShutdownCommand. GRACEFUL_IMMEDIATE_CALLBACK
static Callback<IOSession>
ShutdownCommand. GRACEFUL_NORMAL_CALLBACK
Methods in org.apache.hc.core5.http.nio.command that return Callback Modifier and Type Method Description private static Callback<IOSession>
ShutdownCommand. createIOSessionCallback(Command.Priority priority)
-
Uses of Callback in org.apache.hc.core5.http.nio.entity
Methods in org.apache.hc.core5.http.nio.entity with parameters of type Callback Modifier and Type Method Description static AsyncEntityProducer
AsyncEntityProducers. createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType)
static AsyncEntityProducer
AsyncEntityProducers. createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType, Header... trailers)
static AsyncEntityProducer
AsyncEntityProducers. createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType)
static AsyncEntityProducer
AsyncEntityProducers. createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType, Header... trailers)
-
Uses of Callback in org.apache.hc.core5.http.nio.support
Fields in org.apache.hc.core5.http.nio.support declared as Callback Modifier and Type Field Description private Callback<java.lang.Exception>
AsyncServerFilterChainExchangeHandlerFactory. exceptionCallback
private Callback<java.lang.Exception>
BasicAsyncServerExpectationDecorator. exceptionCallback
Constructors in org.apache.hc.core5.http.nio.support with parameters of type Callback Constructor Description AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain, Callback<java.lang.Exception> exceptionCallback)
BasicAsyncServerExpectationDecorator(AsyncServerExchangeHandler handler, Callback<java.lang.Exception> exceptionCallback)
-
Uses of Callback in org.apache.hc.core5.http2.impl.nio.bootstrap
Fields in org.apache.hc.core5.http2.impl.nio.bootstrap declared as Callback Modifier and Type Field Description private Callback<java.lang.Exception>
H2MultiplexingRequesterBootstrap. exceptionCallback
private Callback<java.lang.Exception>
H2RequesterBootstrap. exceptionCallback
private Callback<java.lang.Exception>
H2ServerBootstrap. exceptionCallback
Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type Callback Modifier and Type Method Description H2MultiplexingRequesterBootstrap
H2MultiplexingRequesterBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)
AssignsException
Callback
instance.H2RequesterBootstrap
H2RequesterBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)
AssignsException
Callback
instance.H2ServerBootstrap
H2ServerBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)
AssignsException
Callback
instance.Constructors in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type Callback Constructor Description H2AsyncRequester(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.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<java.lang.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<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, Resolver<HttpHost,java.net.InetSocketAddress> addressResolver, TlsStrategy tlsStrategy)
UseH2MultiplexingRequesterBootstrap
to create instances of this class. -
Uses of Callback in org.apache.hc.core5.http2.nio.pool
Methods in org.apache.hc.core5.http2.nio.pool with parameters of type Callback Modifier and Type Method Description protected void
H2ConnPool. validateSession(IOSession ioSession, Callback<java.lang.Boolean> callback)
-
Uses of Callback in org.apache.hc.core5.http2.nio.support
Fields in org.apache.hc.core5.http2.nio.support declared as Callback Modifier and Type Field Description private Callback<java.lang.Boolean>
BasicPingHandler. callback
Constructors in org.apache.hc.core5.http2.nio.support with parameters of type Callback Constructor Description BasicPingHandler(Callback<java.lang.Boolean> callback)
-
Uses of Callback in org.apache.hc.core5.pool
Methods in org.apache.hc.core5.pool with parameters of type Callback Modifier and Type Method Description void
LaxConnPool. enumAvailable(Callback<PoolEntry<T,C>> callback)
void
LaxConnPool.PerRoutePool. enumAvailable(Callback<PoolEntry<T,C>> callback)
void
StrictConnPool. enumAvailable(Callback<PoolEntry<T,C>> callback)
Enumerates all available connections.void
LaxConnPool. enumLeased(Callback<PoolEntry<T,C>> callback)
void
LaxConnPool.PerRoutePool. enumLeased(Callback<PoolEntry<T,C>> callback)
void
StrictConnPool. enumLeased(Callback<PoolEntry<T,C>> callback)
Enumerates all leased connections. -
Uses of Callback in org.apache.hc.core5.reactive
Methods in org.apache.hc.core5.reactive with parameters of type Callback Modifier and Type Method Description void
ReactiveRequestProcessor. processRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<java.nio.ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<java.nio.ByteBuffer>> responseBodyCallback)
Processes the actual HTTP request. -
Uses of Callback in org.apache.hc.core5.reactor
Fields in org.apache.hc.core5.reactor declared as Callback Modifier and Type Field Description private Callback<ChannelEntry>
SingleCoreListeningIOReactor. callback
private Callback<java.lang.Exception>
AbstractSingleCoreIOReactor. exceptionCallback
private Callback<IOSession>
SingleCoreIOReactor. sessionShutdownCallback
Methods in org.apache.hc.core5.reactor with parameters of type Callback Modifier and Type Method Description void
AbstractIOSessionPool. enumAvailable(Callback<IOSession> callback)
protected abstract void
AbstractIOSessionPool. validateSession(IOSession ioSession, Callback<java.lang.Boolean> callback)
Constructors in org.apache.hc.core5.reactor with parameters of type Callback Constructor Description AbstractSingleCoreIOReactor(Callback<java.lang.Exception> exceptionCallback)
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 config, Callback<IOSession> sessionShutdownCallback)
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 config, Callback<IOSession> sessionShutdownCallback)
Creates an instance of DefaultListeningIOReactor with the given configuration.SingleCoreIOReactor(Callback<java.lang.Exception> exceptionCallback, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig, Decorator<IOSession> ioSessionDecorator, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)
SingleCoreListeningIOReactor(Callback<java.lang.Exception> exceptionCallback, IOReactorConfig ioReactorConfig, Callback<ChannelEntry> callback)
-
Uses of Callback in org.apache.hc.core5.reactor.ssl
Fields in org.apache.hc.core5.reactor.ssl declared as Callback Modifier and Type Field Description private Callback<SSLIOSession>
SSLIOSession. sessionEndCallback
private Callback<SSLIOSession>
SSLIOSession. sessionStartCallback
Constructors in org.apache.hc.core5.reactor.ssl with parameters of type Callback 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 ofSSLIOSession
class.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 ofSSLIOSession
class. -
Uses of Callback in org.apache.hc.core5.testing.nio
Classes in org.apache.hc.core5.testing.nio that implement Callback Modifier and Type Class Description class
LoggingExceptionCallback
Methods in org.apache.hc.core5.testing.nio with parameters of type Callback Modifier and Type Method Description (package private) DefaultConnectingIOReactor
AsyncRequester. createIOReactor(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback)
(package private) DefaultListeningIOReactor
AsyncServer. createIOReactor(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback)
(package private) abstract T
IOReactorExecutor. createIOReactor(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback)
-
Uses of Callback in org.apache.hc.core5.testing.reactive
Methods in org.apache.hc.core5.testing.reactive with parameters of type Callback Modifier and Type Method Description void
ReactiveEchoProcessor. processRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<java.nio.ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<java.nio.ByteBuffer>> responseBodyFuture)
void
ReactiveRandomProcessor. processRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<java.nio.ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<java.nio.ByteBuffer>> responseBodyCallback)
-