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. -
-
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. exceptionCallbackprivate Callback<java.lang.Exception>AsyncServerBootstrap. exceptionCallbackprivate Callback<javax.net.ssl.SSLParameters>HttpRequester. sslSetupHandlerprivate Callback<javax.net.ssl.SSLParameters>HttpServer. sslSetupHandlerprivate Callback<javax.net.ssl.SSLParameters>RequesterBootstrap. sslSetupHandlerprivate Callback<javax.net.ssl.SSLParameters>ServerBootstrap. sslSetupHandlerMethods in org.apache.hc.core5.http.impl.bootstrap with parameters of type Callback Modifier and Type Method Description AsyncRequesterBootstrapAsyncRequesterBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)AssignsExceptionCallbackinstance.AsyncServerBootstrapAsyncServerBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)AssignsExceptionCallbackinstance.RequesterBootstrapRequesterBootstrap. setSslSetupHandler(Callback<javax.net.ssl.SSLParameters> sslSetupHandler)AssignsCallbackforSSLParameters.ServerBootstrapServerBootstrap. setSslSetupHandler(Callback<javax.net.ssl.SSLParameters> sslSetupHandler)AssignsCallbackforSSLParameters.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)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)UseAsyncRequesterBootstrapto create instances of this class.HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener)UseAsyncServerBootstrapto create instances of this class.HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<java.lang.Exception> exceptionCallback, IOSessionListener sessionListener, java.lang.String canonicalName)UseAsyncServerBootstrapto 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)UseRequesterBootstrapto 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 classDefaultTlsSetupHandlerDefault 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_CALLBACKstatic Callback<IOSession>ShutdownCommand. GRACEFUL_NORMAL_CALLBACKMethods 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 AsyncEntityProducerAsyncEntityProducers. createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType)static AsyncEntityProducerAsyncEntityProducers. createBinary(Callback<StreamChannel<java.nio.ByteBuffer>> callback, ContentType contentType, Header... trailers)static AsyncEntityProducerAsyncEntityProducers. createText(Callback<StreamChannel<java.nio.CharBuffer>> callback, ContentType contentType)static AsyncEntityProducerAsyncEntityProducers. 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. exceptionCallbackprivate Callback<java.lang.Exception>BasicAsyncServerExpectationDecorator. exceptionCallbackConstructors 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. exceptionCallbackprivate Callback<java.lang.Exception>H2RequesterBootstrap. exceptionCallbackprivate Callback<java.lang.Exception>H2ServerBootstrap. exceptionCallbackMethods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type Callback Modifier and Type Method Description H2MultiplexingRequesterBootstrapH2MultiplexingRequesterBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)AssignsExceptionCallbackinstance.H2RequesterBootstrapH2RequesterBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)AssignsExceptionCallbackinstance.H2ServerBootstrapH2ServerBootstrap. setExceptionCallback(Callback<java.lang.Exception> exceptionCallback)AssignsExceptionCallbackinstance.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)UseH2RequesterBootstrapto 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)UseH2RequesterBootstrapto 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)UseH2MultiplexingRequesterBootstrapto 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 voidH2ConnPool. 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. callbackConstructors 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 voidLaxConnPool. enumAvailable(Callback<PoolEntry<T,C>> callback)voidLaxConnPool.PerRoutePool. enumAvailable(Callback<PoolEntry<T,C>> callback)voidStrictConnPool. enumAvailable(Callback<PoolEntry<T,C>> callback)Enumerates all available connections.voidLaxConnPool. enumLeased(Callback<PoolEntry<T,C>> callback)voidLaxConnPool.PerRoutePool. enumLeased(Callback<PoolEntry<T,C>> callback)voidStrictConnPool. 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 voidReactiveRequestProcessor. 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. callbackprivate Callback<java.lang.Exception>AbstractSingleCoreIOReactor. exceptionCallbackprivate Callback<IOSession>SingleCoreIOReactor. sessionShutdownCallbackMethods in org.apache.hc.core5.reactor with parameters of type Callback Modifier and Type Method Description voidAbstractIOSessionPool. enumAvailable(Callback<IOSession> callback)protected abstract voidAbstractIOSessionPool. 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. sessionEndCallbackprivate Callback<SSLIOSession>SSLIOSession. sessionStartCallbackConstructors 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 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.
-