org.apache.hc.core5.http.impl.bootstrap

## Class AsyncRequesterBootstrap

- java.lang.Object
- - org.apache.hc.core5.http.impl.bootstrap.AsyncRequesterBootstrap

-     public class AsyncRequesterBootstrap
      extends Object

  `HttpAsyncRequester` bootstrap.
  Since:
    5.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static AsyncRequesterBootstrap` | `bootstrap()`
    `HttpAsyncRequester` | `create()`
    `AsyncRequesterBootstrap` | `setCharCodingConfig(CharCodingConfig charCodingConfig)` Sets message char coding.
    `AsyncRequesterBootstrap` | `setConnectionReuseStrategy(ConnectionReuseStrategy connStrategy)` Sets `ConnectionReuseStrategy` instance.
    `AsyncRequesterBootstrap` | `setConnPoolListener(ConnPoolListener<HttpHost> connPoolListener)` Sets `ConnPoolListener` instance.
    `AsyncRequesterBootstrap` | `setDefaultMaxPerRoute(int defaultMaxPerRoute)`
    `AsyncRequesterBootstrap` | `setExceptionCallback(Callback<Exception> exceptionCallback)` Sets `Exception` `Callback` instance.
    `AsyncRequesterBootstrap` | `setHttp1Config(Http1Config http1Config)` Sets HTTP/1.1 protocol parameters
    `AsyncRequesterBootstrap` | `setHttpProcessor(HttpProcessor httpProcessor)` Sets `HttpProcessor` instance.
    `AsyncRequesterBootstrap` | `setIOReactorConfig(IOReactorConfig ioReactorConfig)` Sets I/O reactor configuration.
    `AsyncRequesterBootstrap` | `setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)` Sets `IOSession` `Decorator` instance.
    `AsyncRequesterBootstrap` | `setIOSessionListener(IOSessionListener sessionListener)` Sets `IOSessionListener` instance.
    `AsyncRequesterBootstrap` | `setMaxTotal(int maxTotal)`
    `AsyncRequesterBootstrap` | `setPoolConcurrencyPolicy(PoolConcurrencyPolicy poolConcurrencyPolicy)` Sets `PoolConcurrencyPolicy` instance.
    `AsyncRequesterBootstrap` | `setPoolReusePolicy(PoolReusePolicy poolReusePolicy)` Sets `PoolReusePolicy` instance.
    `AsyncRequesterBootstrap` | `setStreamListener(Http1StreamListener streamListener)` Sets `Http1StreamListener` instance.
    `AsyncRequesterBootstrap` | `setTimeToLive(Timeout timeToLive)`
    `AsyncRequesterBootstrap` | `setTlsHandshakeTimeout(Timeout handshakeTimeout)`
    `AsyncRequesterBootstrap` | `setTlsStrategy(TlsStrategy tlsStrategy)` Sets `TlsStrategy` instance.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### bootstrap

          public static AsyncRequesterBootstrap bootstrap()

    - #### setIOReactorConfig

          public final AsyncRequesterBootstrap setIOReactorConfig(IOReactorConfig ioReactorConfig)

      Sets I/O reactor configuration.
      Returns:
        this instance.

    - #### setHttp1Config

          public final AsyncRequesterBootstrap setHttp1Config(Http1Config http1Config)

      Sets HTTP/1.1 protocol parameters
      Returns:
        this instance.

    - #### setCharCodingConfig

          public final AsyncRequesterBootstrap setCharCodingConfig(CharCodingConfig charCodingConfig)

      Sets message char coding.
      Returns:
        this instance.

    - #### setHttpProcessor

          public final AsyncRequesterBootstrap setHttpProcessor(HttpProcessor httpProcessor)

      Sets `HttpProcessor` instance.
      Returns:
        this instance.

    - #### setConnectionReuseStrategy

          public final AsyncRequesterBootstrap setConnectionReuseStrategy(ConnectionReuseStrategy connStrategy)

      Sets `ConnectionReuseStrategy` instance.
      Returns:
        this instance.

    - #### setDefaultMaxPerRoute

          public final AsyncRequesterBootstrap setDefaultMaxPerRoute(int defaultMaxPerRoute)

    - #### setMaxTotal

          public final AsyncRequesterBootstrap setMaxTotal(int maxTotal)

    - #### setTimeToLive

          public final AsyncRequesterBootstrap setTimeToLive(Timeout timeToLive)

    - #### setPoolReusePolicy

          public final AsyncRequesterBootstrap setPoolReusePolicy(PoolReusePolicy poolReusePolicy)

      Sets `PoolReusePolicy` instance.
      Returns:
        this instance.

    - #### setPoolConcurrencyPolicy

          @Experimental
          public final AsyncRequesterBootstrap setPoolConcurrencyPolicy(PoolConcurrencyPolicy poolConcurrencyPolicy)

      Sets `PoolConcurrencyPolicy` instance.
      Returns:
        this instance.

    - #### setTlsStrategy

          public final AsyncRequesterBootstrap setTlsStrategy(TlsStrategy tlsStrategy)

      Sets `TlsStrategy` instance.
      Returns:
        this instance.

    - #### setTlsHandshakeTimeout

          public final AsyncRequesterBootstrap setTlsHandshakeTimeout(Timeout handshakeTimeout)

    - #### setIOSessionDecorator

          public final AsyncRequesterBootstrap setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)

      Sets `IOSession` `Decorator` instance.
      Returns:
        this instance.

    - #### setExceptionCallback

          public final AsyncRequesterBootstrap setExceptionCallback(Callback<Exception> exceptionCallback)

      Sets `Exception` `Callback` instance.
      Returns:
        this instance.

    - #### setIOSessionListener

          public final AsyncRequesterBootstrap setIOSessionListener(IOSessionListener sessionListener)

      Sets `IOSessionListener` instance.
      Returns:
        this instance.

    - #### setStreamListener

          public final AsyncRequesterBootstrap setStreamListener(Http1StreamListener streamListener)

      Sets `Http1StreamListener` instance.
      Returns:
        this instance.

    - #### setConnPoolListener

          public final AsyncRequesterBootstrap setConnPoolListener(ConnPoolListener<HttpHost> connPoolListener)

      Sets `ConnPoolListener` instance.
      Returns:
        this instance.

    - #### create

          public HttpAsyncRequester create()

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