Uses of Interface
org.apache.hc.core5.function.Callback
Packages that use Callback
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.
HTTP message entity APIs based on the asynchronous (non-blocking) I/O model.
Support classes for the asynchronous I/O model.
Support classes for the asynchronous I/O model that emulate
behavior of the classic (blocking) I/O model.
Client side connection 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 Callback in org.apache.hc.core5.http.impl.bootstrap
Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type CallbackModifier and TypeMethodDescriptionfinal AsyncRequesterBootstrapAsyncRequesterBootstrap.setExceptionCallback(Callback<Exception> exceptionCallback) final AsyncServerBootstrapAsyncServerBootstrap.setExceptionCallback(Callback<Exception> exceptionCallback) final RequesterBootstrapRequesterBootstrap.setSslSetupHandler(Callback<SSLParameters> sslSetupHandler) SetsCallbackforSSLParameters.final ServerBootstrapServerBootstrap.setSslSetupHandler(Callback<SSLParameters> sslSetupHandler) SetsCallbackforSSLParameters.Constructors in org.apache.hc.core5.http.impl.bootstrap with parameters of type CallbackModifierConstructorDescriptionAsyncRequester(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback, Resolver<HttpHost, InetSocketAddress> addressResolver, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector) AsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, Callback<IOSession> sessionShutdownCallback, IOWorkerSelector workerSelector) HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<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<Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector, String canonicalName) UseAsyncServerBootstrapto create instances of this class.HttpRequester(HttpRequestExecutor requestExecutor, HttpProcessor httpProcessor, ManagedConnPool<HttpHost, HttpClientConnection> connPool, SocketConfig socketConfig, HttpConnectionFactory<? extends HttpClientConnection> connectFactory, SSLSocketFactory sslSocketFactory, Callback<SSLParameters> sslSetupHandler, SSLSessionVerifier sslSessionVerifier, Resolver<HttpHost, InetSocketAddress> addressResolver) UseRequesterBootstrapto create instances of this class.HttpServer(int port, HttpService httpService, InetAddress ifAddress, SocketConfig socketConfig, ServerSocketFactory serverSocketFactory, HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory, SSLContext sslContext, Callback<SSLParameters> sslSetupHandler, ExceptionListener exceptionListener) -
Uses of Callback in org.apache.hc.core5.http.impl.nio
Constructors in org.apache.hc.core5.http.impl.nio with parameters of type CallbackModifierConstructorDescriptionServerHttp1StreamDuplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParser<HttpRequest> incomingMessageParser, NHttpMessageWriter<HttpResponse> outgoingMessageWriter, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Http1StreamListener streamListener, Callback<Exception> exceptionCallback) ServerHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Http1StreamListener streamListener, Callback<Exception> exceptionCallback) ServerHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, Http1StreamListener streamListener, Callback<Exception> exceptionCallback) ServerHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, Http1StreamListener streamListener, Callback<Exception> exceptionCallback) -
Uses of Callback in org.apache.hc.core5.http.io.ssl
Classes in org.apache.hc.core5.http.io.ssl that implement CallbackModifier and TypeClassDescriptionfinal classDefault 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 CallbackModifier and TypeFieldDescriptionShutdownCommand.GRACEFUL_IMMEDIATE_CALLBACKShutdownCommand.GRACEFUL_NORMAL_CALLBACKConstructors in org.apache.hc.core5.http.nio.command with parameters of type CallbackModifierConstructorDescriptionRequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context, Callback<StreamControl> initiationCallback) -
Uses of Callback in org.apache.hc.core5.http.nio.entity
Methods in org.apache.hc.core5.http.nio.entity with parameters of type CallbackModifier and TypeMethodDescriptionstatic AsyncEntityProducerAsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType) static AsyncEntityProducerAsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType, Header... trailers) static AsyncEntityProducerAsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType) static AsyncEntityProducerAsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType, Header... trailers) -
Uses of Callback in org.apache.hc.core5.http.nio.support
Constructors in org.apache.hc.core5.http.nio.support with parameters of type CallbackModifierConstructorDescriptionAsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain, Callback<Exception> exceptionCallback) BasicAsyncServerExpectationDecorator(AsyncServerExchangeHandler handler, Callback<Exception> exceptionCallback) -
Uses of Callback in org.apache.hc.core5.http.nio.support.classic
Constructors in org.apache.hc.core5.http.nio.support.classic with parameters of type CallbackModifierConstructorDescriptionClassicToAsyncServerExchangeHandler(int initialBufferSize, Executor executor, HttpServerRequestHandler requestHandler, Callback<Exception> exceptionCallback) ClassicToAsyncServerExchangeHandler(Executor executor, HttpRequestMapper<HttpRequestHandler> handlerMapper, Callback<Exception> exceptionCallback) ClassicToAsyncServerExchangeHandler(Executor executor, HttpRequestHandler handler, Callback<Exception> exceptionCallback) ClassicToAsyncServerExchangeHandler(Executor executor, HttpServerRequestHandler requestHandler, Callback<Exception> exceptionCallback) -
Uses of Callback in org.apache.hc.core5.pool
Methods in org.apache.hc.core5.pool with parameters of type CallbackModifier and TypeMethodDescriptionvoidLaxConnPool.enumAvailable(Callback<PoolEntry<T, C>> callback) voidStrictConnPool.enumAvailable(Callback<PoolEntry<T, C>> callback) Enumerates all available connections.voidLaxConnPool.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.reactor
Methods in org.apache.hc.core5.reactor with parameters of type CallbackModifier and TypeMethodDescriptionfinal voidAbstractIOSessionPool.enumAvailable(Callback<IOSession> callback) protected abstract voidAbstractIOSessionPool.validateSession(IOSession ioSession, Callback<Boolean> callback) Constructors in org.apache.hc.core5.reactor with parameters of type CallbackModifierConstructorDescriptionDefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback) DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, Callback<IOSession> sessionShutdownCallback, IOWorkerSelector workerSelector) 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 ioReactorConfig, ThreadFactory dispatchThreadFactory, ThreadFactory listenerThreadFactory, Decorator<IOSession> ioSessionDecorator, Callback<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 Callback in org.apache.hc.core5.reactor.ssl
Constructors in org.apache.hc.core5.reactor.ssl with parameters of type CallbackModifierConstructorDescriptionSSLIOSession(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 ofSSLIOSessionclass.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 ofSSLIOSessionclass.