public class PoolingAsyncClientConnectionManagerBuilder extends Object
PoolingAsyncClientConnectionManager
instances.
When a particular component is not explicitly set this class will
use its default implementation. System properties will be taken
into account when configuring the default implementations when
useSystemProperties()
method is called prior to calling
build()
.
public static PoolingAsyncClientConnectionManagerBuilder create()
public final PoolingAsyncClientConnectionManagerBuilder setTlsStrategy(org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
TlsStrategy
instance for TLS connections.public final PoolingAsyncClientConnectionManagerBuilder setDnsResolver(DnsResolver dnsResolver)
DnsResolver
instance.public final PoolingAsyncClientConnectionManagerBuilder setSchemePortResolver(SchemePortResolver schemePortResolver)
SchemePortResolver
instance.public final PoolingAsyncClientConnectionManagerBuilder setPoolConcurrencyPolicy(org.apache.hc.core5.pool.PoolConcurrencyPolicy poolConcurrencyPolicy)
PoolConcurrencyPolicy
value.public final PoolingAsyncClientConnectionManagerBuilder setConnPoolPolicy(org.apache.hc.core5.pool.PoolReusePolicy poolReusePolicy)
PoolReusePolicy
value.public final PoolingAsyncClientConnectionManagerBuilder setMaxConnTotal(int maxConnTotal)
public final PoolingAsyncClientConnectionManagerBuilder setMaxConnPerRoute(int maxConnPerRoute)
public final PoolingAsyncClientConnectionManagerBuilder setDefaultConnectionConfig(ConnectionConfig config)
ConnectionConfig
for all routes.public final PoolingAsyncClientConnectionManagerBuilder setConnectionConfigResolver(org.apache.hc.core5.function.Resolver<HttpRoute,ConnectionConfig> connectionConfigResolver)
Resolver
of ConnectionConfig
on a per route basis.public final PoolingAsyncClientConnectionManagerBuilder setDefaultTlsConfig(TlsConfig config)
TlsConfig
for all hosts.public final PoolingAsyncClientConnectionManagerBuilder setTlsConfigResolver(org.apache.hc.core5.function.Resolver<org.apache.hc.core5.http.HttpHost,TlsConfig> tlsConfigResolver)
Resolver
of TlsConfig
on a per host basis.@Deprecated public final PoolingAsyncClientConnectionManagerBuilder setConnectionTimeToLive(org.apache.hc.core5.util.TimeValue timeToLive)
setDefaultConnectionConfig(ConnectionConfig)
@Deprecated public final PoolingAsyncClientConnectionManagerBuilder setValidateAfterInactivity(org.apache.hc.core5.util.TimeValue validateAfterInactivity)
setConnectionConfigResolver(Resolver)
.public final PoolingAsyncClientConnectionManagerBuilder useSystemProperties()
public PoolingAsyncClientConnectionManager build()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.