public class PoolingHttpClientConnectionManagerBuilder extends Object
PoolingHttpClientConnectionManager
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 PoolingHttpClientConnectionManager build()
public static PoolingHttpClientConnectionManagerBuilder create()
public final PoolingHttpClientConnectionManagerBuilder setConnectionFactory(HttpConnectionFactory<ManagedHttpClientConnection> connectionFactory)
HttpConnectionFactory
instance.public final PoolingHttpClientConnectionManagerBuilder setConnectionTimeToLive(TimeValue timeToLive)
public final PoolingHttpClientConnectionManagerBuilder setConnPoolPolicy(PoolReusePolicy poolReusePolicy)
PoolReusePolicy
value.public final PoolingHttpClientConnectionManagerBuilder setDefaultSocketConfig(SocketConfig config)
SocketConfig
.public final PoolingHttpClientConnectionManagerBuilder setDnsResolver(DnsResolver dnsResolver)
DnsResolver
instance.public final PoolingHttpClientConnectionManagerBuilder setMaxConnPerRoute(int maxConnPerRoute)
public final PoolingHttpClientConnectionManagerBuilder setMaxConnTotal(int maxConnTotal)
public final PoolingHttpClientConnectionManagerBuilder setPoolConcurrencyPolicy(PoolConcurrencyPolicy poolConcurrencyPolicy)
PoolConcurrencyPolicy
value.public final PoolingHttpClientConnectionManagerBuilder setSchemePortResolver(SchemePortResolver schemePortResolver)
SchemePortResolver
instance.public final PoolingHttpClientConnectionManagerBuilder setSSLSocketFactory(LayeredConnectionSocketFactory sslSocketFactory)
LayeredConnectionSocketFactory
instance.public final PoolingHttpClientConnectionManagerBuilder setValidateAfterInactivity(TimeValue validateAfterInactivity)
BHttpConnection.isStale()
public final PoolingHttpClientConnectionManagerBuilder useSystemProperties()