CloseableHttpAsyncClient instances.
Concurrent message exchanges with the same connection route executed
with these CloseableHttpAsyncClient instances will get
automatically multiplexed over a single physical HTTP/2 connection.
When a particular component is not explicitly set this class will use its default implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Lookup | |
| private boolean | |
| private CharCodingConfig | |
| private List | |
| private Resolver | |
| private boolean | |
| private Lookup | |
| private CookieStore | |
| private CredentialsProvider | |
| private Collection | |
| private RequestConfig | |
| private DnsResolver | |
| private boolean | |
| private LinkedList | |
| private H2Config | |
| private IOReactorConfig | |
| private Callback | |
| private Decorator | |
| private IOSessionListener | |
| private TimeValue | |
| private AuthenticationStrategy | |
| private boolean | |
| private RedirectStrategy | |
| private LinkedList | |
| private LinkedList | |
| private HttpRequestRetryStrategy | |
| private HttpRoutePlanner | |
| private SchemePortResolver | |
| private boolean | |
| private AuthenticationStrategy | |
| private ThreadFactory | |
| private TlsStrategy | |
| private String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addCloseable(final Closeable closeable)
Adds to the list of |
| public final H2AsyncClientBuilder | addExecInterceptorAfter(final String existing, final String name, final AsyncExecChainHandler interceptor)
Adds this execution interceptor after interceptor with the given name. |
| public final H2AsyncClientBuilder | addExecInterceptorBefore(final String existing, final String name, final AsyncExecChainHandler interceptor)
Adds this execution interceptor before an existing interceptor. |
| public final H2AsyncClientBuilder | addExecInterceptorFirst(final String name, final AsyncExecChainHandler interceptor)
Add an interceptor to the head of the processing list. |
| public final H2AsyncClientBuilder | addExecInterceptorLast(final String name, final AsyncExecChainHandler interceptor)
Add an interceptor to the tail of the processing list. |
| public final H2AsyncClientBuilder | addRequestInterceptorFirst(final HttpRequestInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list. |
| public final H2AsyncClientBuilder | addRequestInterceptorLast(final HttpRequestInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list. |
| public final H2AsyncClientBuilder | addResponseInterceptorFirst(final HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list. |
| public final H2AsyncClientBuilder | addResponseInterceptorLast(final HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list. |
| public CloseableHttpAsyncClient | |
| public static H2AsyncClientBuilder | |
| protected void | customizeExecChain(final NamedElementChain<AsyncExecChainHandler> execChainDefinition)
Request exec chain customization and extension. |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | evictIdleConnections(final TimeValue
maximum time persistent connections can stay idle while kept alive
in the connection pool. Connections whose inactivity period exceeds this value will
get closed and evicted from the pool. maxIdleTime)Makes this instance of HttpClient proactively evict idle connections from the connection pool using a background thread. |
| private static String | |
| public final H2AsyncClientBuilder | replaceExecInterceptor(final String existing, final AsyncExecChainHandler interceptor)
Replace an existing interceptor with the given name with new interceptor. |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | setConnectionConfigResolver(final Resolver<HttpHost, ConnectionConfig> connectionConfigResolver)
Assigns |
| public final H2AsyncClientBuilder | setDefaultAuthSchemeRegistry(final Lookup<AuthSchemeFactory> authSchemeRegistry)
Assigns default |
| public final H2AsyncClientBuilder | setDefaultConnectionConfig(final ConnectionConfig connectionConfig)
Assigns the same |
| public final H2AsyncClientBuilder | setDefaultCookieSpecRegistry(final Lookup<CookieSpecFactory> cookieSpecRegistry)
Assigns default |
| public final H2AsyncClientBuilder | setDefaultCookieStore(final CookieStore cookieStore)
Assigns default |
| public final H2AsyncClientBuilder | setDefaultCredentialsProvider(final CredentialsProvider credentialsProvider)
Assigns default |
| public final H2AsyncClientBuilder | setDefaultHeaders(final Collection<? extends Header> defaultHeaders)
Assigns default request header values. |
| public final H2AsyncClientBuilder | setDefaultRequestConfig(final RequestConfig config)
Assigns default |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | setIoReactorExceptionCallback(final Callback<Exception> ioReactorExceptionCallback)
Sets the callback that will be invoked when the client's IOReactor encounters an uncaught exception. |
| public final H2AsyncClientBuilder | setIoSessionDecorator(final Decorator<IOSession> ioSessionDecorator)
Sets the |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | setProxyAuthenticationStrategy(final AuthenticationStrategy proxyAuthStrategy)
Assigns |
| public H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | setRetryStrategy(final HttpRequestRetryStrategy retryStrategy)
Assigns |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | setSchemePortResolver(final SchemePortResolver schemePortResolver)
Assigns |
| public final H2AsyncClientBuilder | setTargetAuthenticationStrategy(final AuthenticationStrategy targetAuthStrategy)
Assigns |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder | |
| public final H2AsyncClientBuilder |