org.apache.http.impl.conn.tsccm.ConnPoolByRoute Java Examples

The following examples show how to use org.apache.http.impl.conn.tsccm.ConnPoolByRoute. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MonitoredConnectionManager.java    From ribbon with Apache License 2.0 4 votes vote down vote up
@Override
protected ConnPoolByRoute createConnectionPool(long connTTL,
        TimeUnit connTTLTimeUnit) {
    return new NamedConnectionPool(connOperator, connPerRoute, 20, connTTL, connTTLTimeUnit);
}
 
Example #2
Source File: MonitoredConnectionManager.java    From ribbon with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
ConnPoolByRoute getConnectionPool() {
    return this.pool;
}
 
Example #3
Source File: CougarClientConnManager.java    From cougar with Apache License 2.0 4 votes vote down vote up
@Override
protected ConnPoolByRoute createConnectionPool(long connTTL, TimeUnit connTTLTimeUnit) {
    return new CougarConnPoolByRoute(connOperator, connPerRoute, TOTAL_CONNECTIONS, connTTL, connTTLTimeUnit);
}