List of usage examples for org.apache.http.impl.conn FixedHttpConnPool FixedHttpConnPool
public FixedHttpConnPool(final Log log, final int defaultMaxPerRoute, final int maxTotal, final long timeToLive, final TimeUnit tunit)
From source file:org.apache.http.impl.conn.FixedPoolingClientConnectionManager.java
public FixedPoolingClientConnectionManager(final SchemeRegistry schemeRegistry, final long timeToLive, final TimeUnit tunit, final DnsResolver dnsResolver) { super();//from w ww . j a va 2 s.co m if (schemeRegistry == null) { throw new IllegalArgumentException("Scheme registry may not be null"); } if (dnsResolver == null) { throw new IllegalArgumentException("DNS resolver may not be null"); } this.schemeRegistry = schemeRegistry; this.dnsResolver = dnsResolver; this.operator = createConnectionOperator(schemeRegistry); this.pool = new FixedHttpConnPool(this.log, 2, 20, timeToLive, tunit); }