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.
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.
Support classes for HTTP/2 asynchronous transport.
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
Fields in org.apache.hc.core5.http.impl.bootstrap declared as CallbackModifier and TypeFieldDescriptionAsyncRequesterBootstrap.exceptionCallbackAsyncServerBootstrap.exceptionCallbackprivate final Callback<SSLParameters> HttpRequester.sslSetupHandlerprivate final Callback<SSLParameters> HttpServer.sslSetupHandlerprivate Callback<SSLParameters> RequesterBootstrap.sslSetupHandlerprivate final Callback<SSLParameters> RequestListener.sslSetupHandlerprivate Callback<SSLParameters> ServerBootstrap.sslSetupHandlerMethods 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) 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) RequestListener(SocketConfig socketConfig, ServerSocket serversocket, HttpService httpService, HttpConnectionFactory<? extends HttpServerConnection> connectionFactory, SSLSocketFactory sslSocketFactory, Callback<SSLParameters> sslSetupHandler, ExceptionListener exceptionListener, ExecutorService executorService) -
Uses of Callback in org.apache.hc.core5.http.impl.nio
Fields in org.apache.hc.core5.http.impl.nio declared as CallbackModifier and TypeFieldDescriptionServerHttp1StreamDuplexer.exceptionCallbackServerHttp1StreamDuplexerFactory.exceptionCallbackServerHttp1StreamHandler.exceptionCallbackConstructors 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) (package private)ServerHttp1StreamHandler(Http1StreamChannel<HttpResponse> outputChannel, HttpProcessor httpProcessor, Http1Config http1Config, ConnectionReuseStrategy connectionReuseStrategy, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Callback<Exception> exceptionCallback, HttpCoreContext context) -
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_CALLBACKMethods in org.apache.hc.core5.http.nio.command that return CallbackModifier and TypeMethodDescriptionShutdownCommand.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 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
Fields in org.apache.hc.core5.http.nio.support declared as CallbackModifier and TypeFieldDescriptionAsyncServerFilterChainExchangeHandlerFactory.exceptionCallbackBasicAsyncServerExpectationDecorator.exceptionCallbackConstructors 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
Fields in org.apache.hc.core5.http.nio.support.classic declared as CallbackConstructors 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.http2.impl.nio
Fields in org.apache.hc.core5.http2.impl.nio declared as CallbackModifier and TypeFieldDescriptionClientH2UpgradeHandler.exceptionCallbackClientHttpProtocolNegotiationStarter.exceptionCallbackPrefaceHandlerBase.exceptionCallbackServerH2UpgradeHandler.exceptionCallbackServerHttpProtocolNegotiationStarter.exceptionCallbackConstructors in org.apache.hc.core5.http2.impl.nio with parameters of type CallbackModifierConstructorDescriptionClientH2PrefaceHandler(ProtocolIOSession ioSession, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, boolean strictALPNHandshake, FutureCallback<ProtocolIOSession> resultCallback, Callback<Exception> exceptionCallback) ClientH2PrefaceHandler(ProtocolIOSession ioSession, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, boolean strictALPNHandshake, Callback<Exception> exceptionCallback) ClientH2UpgradeHandler(ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, Callback<Exception> exceptionCallback) ClientHttpProtocolNegotiationStarter(ClientHttp1StreamDuplexerFactory http1StreamHandlerFactory, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, TlsStrategy tlsStrategy, Timeout handshakeTimeout, Callback<Exception> exceptionCallback) (package private)PrefaceHandlerBase(ProtocolIOSession ioSession, FutureCallback<ProtocolIOSession> resultCallback, Callback<Exception> exceptionCallback) ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, FutureCallback<ProtocolIOSession> resultCallback, Callback<Exception> exceptionCallback) ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, Callback<Exception> exceptionCallback) ServerH2UpgradeHandler(ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, Callback<Exception> exceptionCallback) ServerHttpProtocolNegotiationStarter(ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, TlsStrategy tlsStrategy, Timeout handshakeTimeout, Callback<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 CallbackModifier and TypeFieldDescriptionH2MultiplexingRequesterBootstrap.exceptionCallbackH2RequesterBootstrap.exceptionCallbackH2ServerBootstrap.exceptionCallbackMethods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type CallbackModifier and TypeMethodDescriptionH2MultiplexingRequesterBootstrap.setExceptionCallback(Callback<Exception> exceptionCallback) final H2RequesterBootstrapH2RequesterBootstrap.setExceptionCallback(Callback<Exception> exceptionCallback) final H2ServerBootstrapH2ServerBootstrap.setExceptionCallback(Callback<Exception> exceptionCallback) Constructors in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type CallbackModifierConstructorDescriptionH2AsyncRequester(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector) UseH2RequesterBootstrapto create instances of this class.H2MultiplexingRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Resolver<HttpHost, InetSocketAddress> addressResolver, TlsStrategy tlsStrategy, IOReactorMetricsListener threadPoolListener, IOWorkerSelector workerSelector) 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 CallbackModifier and TypeMethodDescriptionprotected voidH2ConnPool.validateSession(IOSession ioSession, Callback<Boolean> callback) -
Uses of Callback in org.apache.hc.core5.http2.nio.support
Fields in org.apache.hc.core5.http2.nio.support declared as CallbackConstructors in org.apache.hc.core5.http2.nio.support with parameters of type Callback -
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) 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 CallbackModifier and TypeMethodDescriptionvoidReactiveRequestProcessor.processRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<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 CallbackModifier and TypeFieldDescriptionprivate final Callback<ChannelEntry> SingleCoreListeningIOReactor.callbackAbstractSingleCoreIOReactor.exceptionCallbackIOSessionImpl.sessionClosedCallbackSingleCoreIOReactor.sessionShutdownCallbackMethods 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 CallbackModifierConstructorDescription(package private)AbstractSingleCoreIOReactor(Callback<Exception> exceptionCallback) DefaultConnectingIOReactor(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.IOSessionImpl(String type, SelectionKey key, SocketChannel socketChannel, Callback<IOSession> sessionClosedCallback) (package private)SingleCoreIOReactor(Callback<Exception> exceptionCallback, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig, Decorator<IOSession> ioSessionDecorator, IOSessionListener sessionListener, IOReactorMetricsListener threadPoolListener, Callback<IOSession> sessionShutdownCallback) (package private)SingleCoreListeningIOReactor(Callback<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 CallbackModifier and TypeFieldDescriptionprivate final Callback<SSLIOSession> SSLIOSession.sessionEndCallbackprivate final Callback<SSLIOSession> SSLIOSession.sessionStartCallbackConstructors 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.