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

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

Introduction

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

Prototype

HttpNIOConnPool(final Log log, final ConnectingIOReactor ioreactor, final AsyncSchemeRegistry schemeRegistry,
            final long connTimeToLive, final TimeUnit tunit) 

Source Link

Usage

From source file:org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.java

public PoolingClientAsyncConnectionManager(final ConnectingIOReactor ioreactor,
        final AsyncSchemeRegistry schemeRegistry, final long timeToLive, final TimeUnit tunit) {
    super();/*from w  ww.  java2 s .co m*/
    Args.notNull(ioreactor, "I/O reactor");
    Args.notNull(schemeRegistry, "Scheme registory");
    Args.notNull(tunit, "Time unit");
    this.ioreactor = ioreactor;
    this.pool = new HttpNIOConnPool(this.log, ioreactor, schemeRegistry, timeToLive, tunit);
    this.schemeRegistry = schemeRegistry;
    this.connFactory = createClientAsyncConnectionFactory();
}