List of usage examples for org.apache.http.impl.nio.conn HttpSessionPool HttpSessionPool
HttpSessionPool(final Log log, final ConnectingIOReactor ioreactor, final SchemeRegistry schemeRegistry, long timeToLive, final TimeUnit tunit)
From source file:org.apache.http.impl.nio.conn.PoolingClientConnectionManager.java
public PoolingClientConnectionManager(final ConnectingIOReactor ioreactor, final SchemeRegistry schemeRegistry, final long timeToLive, final TimeUnit tunit) { super();/* ww w .j ava 2s.co m*/ if (ioreactor == null) { throw new IllegalArgumentException("I/O reactor may not be null"); } if (schemeRegistry == null) { throw new IllegalArgumentException("Scheme registory may not be null"); } if (tunit == null) { throw new IllegalArgumentException("Time unit may not be null"); } this.pool = new HttpSessionPool(this.log, ioreactor, schemeRegistry, timeToLive, tunit); this.schemeRegistry = schemeRegistry; }