Example usage for org.apache.http.impl.nio.conn HttpSessionPool HttpSessionPool

List of usage examples for org.apache.http.impl.nio.conn HttpSessionPool HttpSessionPool

Introduction

In this page you can find the example usage for org.apache.http.impl.nio.conn HttpSessionPool HttpSessionPool.

Prototype

HttpSessionPool(final Log log, final ConnectingIOReactor ioreactor, final SchemeRegistry schemeRegistry,
            long timeToLive, final TimeUnit tunit) 

Source Link

Usage

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;
}