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 PoolingAsyncClientConnectionManager build()
public static PoolingAsyncClientConnectionManagerBuilder create()
public final PoolingAsyncClientConnectionManagerBuilder setConnectionTimeToLive(TimeValue timeToLive)
public final PoolingAsyncClientConnectionManagerBuilder setConnPoolPolicy(PoolReusePolicy poolReusePolicy)
PoolReusePolicy
value.public final PoolingAsyncClientConnectionManagerBuilder setDnsResolver(DnsResolver dnsResolver)
DnsResolver
instance.public final PoolingAsyncClientConnectionManagerBuilder setMaxConnPerRoute(int maxConnPerRoute)
public final PoolingAsyncClientConnectionManagerBuilder setMaxConnTotal(int maxConnTotal)
public final PoolingAsyncClientConnectionManagerBuilder setPoolConcurrencyPolicy(PoolConcurrencyPolicy poolConcurrencyPolicy)
PoolConcurrencyPolicy
value.public final PoolingAsyncClientConnectionManagerBuilder setSchemePortResolver(SchemePortResolver schemePortResolver)
SchemePortResolver
instance.public final PoolingAsyncClientConnectionManagerBuilder setTlsStrategy(TlsStrategy tlsStrategy)
TlsStrategy
instance for TLS connections.public final PoolingAsyncClientConnectionManagerBuilder setValidateAfterInactivity(TimeValue validateAfterInactivity)
BHttpConnection.isStale()
public final PoolingAsyncClientConnectionManagerBuilder useSystemProperties()