Top Fields Constructors Methods
org.apache.http.impl.conn

pack-priv Class CPool

extends AbstractConnPool<HttpRoute, ManagedHttpClientConnection, CPoolEntry>
Class Inheritance
Annotations
@Contract
threading:SAFE
Imports
java.util.concurrent.TimeUnit, java.util.concurrent.atomic.AtomicLong, org.apache.commons.logging.Log, .LogFactory, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.conn.ManagedHttpClientConnection, org.apache.http.conn.routing.HttpRoute, org.apache.http.pool.AbstractConnPool, .ConnFactory, .PoolEntryCallback

Since
4.3

Field Summary

Modifier and TypeField and Description
private static final AtomicLong
private final Log
private final long
private final TimeUnit

Constructor Summary

AccessConstructor and Description
public
CPool(final ConnFactory<HttpRoute, ManagedHttpClientConnection> connFactory, final int defaultMaxPerRoute, final int maxTotal, final long timeToLive, final TimeUnit timeUnit)

Method Summary

Modifier and TypeMethod and Description
protected CPoolEntry
createEntry(final HttpRoute route, final ManagedHttpClientConnection conn)

Implements abstract org.apache.http.pool.AbstractConnPool.createEntry.

Creates a new entry for the given connection with the given route.
protected void
protected void
protected boolean
Inherited from org.apache.http.pool.AbstractConnPool:
closeExpiredcloseIdlegetDefaultMaxPerRoutegetMaxPerRoutegetMaxTotalgetRoutesgetStatsgetTotalStatsgetValidateAfterInactivityisShutdownleaseleaseonLeaseonReleaseonReusereleasesetDefaultMaxPerRoutesetMaxPerRoutesetMaxTotalsetValidateAfterInactivityshutdowntoString

Field Detail

COUNTERback to summary
private static final AtomicLong COUNTER
logback to summary
private final Log log
timeToLiveback to summary
private final long timeToLive
timeUnitback to summary
private final TimeUnit timeUnit

Constructor Detail

CPoolback to summary
public CPool(final ConnFactory<HttpRoute, ManagedHttpClientConnection> connFactory, final int defaultMaxPerRoute, final int maxTotal, final long timeToLive, final TimeUnit timeUnit)

Method Detail

createEntryback to summary
protected CPoolEntry createEntry(final HttpRoute route, final ManagedHttpClientConnection conn)

Implements abstract org.apache.http.pool.AbstractConnPool.createEntry.

Doc from org.apache.http.pool.AbstractConnPool.createEntry.

Creates a new entry for the given connection with the given route.

Annotations
@Override
enumAvailableback to summary
protected void enumAvailable(final PoolEntryCallback<HttpRoute, ManagedHttpClientConnection> callback)

Overrides org.apache.http.pool.AbstractConnPool.enumAvailable.

Doc from org.apache.http.pool.AbstractConnPool.enumAvailable.

Enumerates all available connections.

Annotations
@Override
enumLeasedback to summary
protected void enumLeased(final PoolEntryCallback<HttpRoute, ManagedHttpClientConnection> callback)

Overrides org.apache.http.pool.AbstractConnPool.enumLeased.

Doc from org.apache.http.pool.AbstractConnPool.enumLeased.

Enumerates all leased connections.

Annotations
@Override
validateback to summary
protected boolean validate(final CPoolEntry entry)

Overrides org.apache.http.pool.AbstractConnPool.validate.

Annotations
@Override