## 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

    Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type Callback
    Modifier and Type | Method and Description
    --- | ---
    `AsyncServerBootstrap` | AsyncServerBootstrap.`setExceptionCallback(Callback<Exception> exceptionCallback)` Assigns `Exception` `Callback` instance.
    `AsyncRequesterBootstrap` | AsyncRequesterBootstrap.`setExceptionCallback(Callback<Exception> exceptionCallback)` Assigns `Exception` `Callback` instance.
    `ServerBootstrap` | ServerBootstrap.`setSslSetupHandler(Callback<SSLParameters> sslSetupHandler)` Assigns `Callback` for `SSLParameters`.
    `RequesterBootstrap` | RequesterBootstrap.`setSslSetupHandler(Callback<SSLParameters> sslSetupHandler)` Assigns `Callback` for `SSLParameters`.

    Constructors in org.apache.hc.core5.http.impl.bootstrap with parameters of type Callback
    Constructor and Description
    `AsyncRequester(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback, Resolver<HttpHost,InetSocketAddress> addressResolver)`
    `AsyncRequester(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback, Resolver<HttpHost,InetSocketAddress> addressResolver)`
    `AsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)`
    `AsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)`
    `HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool)` Use `AsyncRequesterBootstrap` to create instances of this class.
    `HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener)` Use `AsyncServerBootstrap` to create instances of this class.
    `HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, String canonicalName)` Use `AsyncServerBootstrap` to 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)` Use `RequesterBootstrap` to create instances of this class.
    `HttpServer(int port, HttpService httpService, InetAddress ifAddress, SocketConfig socketConfig, ServerSocketFactory serverSocketFactory, HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory, Callback<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 and 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 and Description
    --- | ---
    `static Callback<IOSession>` | ShutdownCommand.`GRACEFUL_IMMEDIATE_CALLBACK`
    `static Callback<IOSession>` | ShutdownCommand.`GRACEFUL_NORMAL_CALLBACK`

  - ### 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 and Description
    --- | ---
    `static AsyncEntityProducer` | AsyncEntityProducers.`createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType)`
    `static AsyncEntityProducer` | AsyncEntityProducers.`createBinary(Callback<StreamChannel<ByteBuffer>> callback, ContentType contentType, Header... trailers)`
    `static AsyncEntityProducer` | AsyncEntityProducers.`createText(Callback<StreamChannel<CharBuffer>> callback, ContentType contentType)`
    `static AsyncEntityProducer` | AsyncEntityProducers.`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 Callback
    Constructor and Description
    `AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain, Callback<Exception> exceptionCallback)`
    `BasicAsyncServerExpectationDecorator(AsyncServerExchangeHandler handler, Callback<Exception> exceptionCallback)`

  - ### Uses of Callback in org.apache.hc.core5.http2.impl.nio.bootstrap

    Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type Callback
    Modifier and Type | Method and Description
    --- | ---
    `H2RequesterBootstrap` | H2RequesterBootstrap.`setExceptionCallback(Callback<Exception> exceptionCallback)` Assigns `Exception` `Callback` instance.
    `H2ServerBootstrap` | H2ServerBootstrap.`setExceptionCallback(Callback<Exception> exceptionCallback)` Assigns `Exception` `Callback` instance.
    `H2MultiplexingRequesterBootstrap` | H2MultiplexingRequesterBootstrap.`setExceptionCallback(Callback<Exception> exceptionCallback)` Assigns `Exception` `Callback` instance.

    Constructors in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type Callback
    Constructor and Description
    `H2AsyncRequester(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool)` Use `H2RequesterBootstrap` to create instances of this class.
    `H2MultiplexingRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Resolver<HttpHost,InetSocketAddress> addressResolver, TlsStrategy tlsStrategy)` Use `H2MultiplexingRequesterBootstrap` 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 and Description
    --- | ---
    `protected void` | H2ConnPool.`validateSession(IOSession ioSession, Callback<Boolean> callback)`

  - ### Uses of Callback in org.apache.hc.core5.http2.nio.support

    Constructors in org.apache.hc.core5.http2.nio.support with parameters of type Callback
    Constructor and Description
    `BasicPingHandler(Callback<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 and Description
    --- | ---
    `void` | StrictConnPool.`enumAvailable(Callback<PoolEntry<T,C>> callback)` Enumerates all available connections.
    `void` | LaxConnPool.`enumAvailable(Callback<PoolEntry<T,C>> callback)`
    `void` | StrictConnPool.`enumLeased(Callback<PoolEntry<T,C>> callback)` Enumerates all leased connections.
    `void` | LaxConnPool.`enumLeased(Callback<PoolEntry<T,C>> callback)`

  - ### 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 and Description
    --- | ---
    `void` | ReactiveRequestProcessor.`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

    Methods in org.apache.hc.core5.reactor with parameters of type Callback
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractIOSessionPool.`enumAvailable(Callback<IOSession> callback)`
    `protected abstract void` | AbstractIOSessionPool.`validateSession(IOSession ioSession, Callback<Boolean> callback)`

    Constructors in org.apache.hc.core5.reactor with parameters of type Callback
    Constructor and Description
    `DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, Callback<IOSession> sessionShutdownCallback)`
    `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, Callback<IOSession> sessionShutdownCallback)`
    `DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, 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, 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, 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 Callback
    Constructor and Description
    `SSLIOSession(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 of `SSLIOSession` class.
    `SSLIOSession(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 of `SSLIOSession` 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 and Description
    --- | ---
    `class` | `LoggingExceptionCallback`

  - ### 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 and Description
    --- | ---
    `void` | ReactiveRandomProcessor.`processRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<ByteBuffer>> responseBodyCallback)`
    `void` | ReactiveEchoProcessor.`processRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<ByteBuffer>> responseBodyFuture)`

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.