| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicLong | |
| private final Log | |
| private final long | |
| private final TimeUnit |
| Access | Constructor and Description |
|---|---|
| public | CPool(final ConnFactory<HttpRoute, ManagedHttpClientConnection> connFactory, final int defaultMaxPerRoute, final int maxTotal, final long timeToLive, final TimeUnit timeUnit)
|
| Modifier and Type | Method and Description |
|---|---|
| protected CPoolEntry | createEntry(final HttpRoute route, final ManagedHttpClientConnection conn)
Implements abstract org. |
| protected void | enumAvailable(final PoolEntryCallback<HttpRoute, ManagedHttpClientConnection> callback)
Overrides org. |
| protected void | enumLeased(final PoolEntryCallback<HttpRoute, ManagedHttpClientConnection> callback)
Enumerates all leased connections.
|
| protected boolean |
| COUNTER | back to summary |
|---|---|
| private static final AtomicLong COUNTER | |
| log | back to summary |
|---|---|
| private final Log log | |
| timeToLive | back to summary |
|---|---|
| private final long timeToLive | |
| timeUnit | back to summary |
|---|---|
| private final TimeUnit timeUnit | |
| CPool | back to summary |
|---|---|
| public CPool(final ConnFactory<HttpRoute, ManagedHttpClientConnection> connFactory, final int defaultMaxPerRoute, final int maxTotal, final long timeToLive, final TimeUnit timeUnit) | |
| createEntry | back to summary |
|---|---|
| protected CPoolEntry createEntry(final HttpRoute route, final ManagedHttpClientConnection conn) Implements abstract org. Doc from org. Creates a new entry for the given connection with the given route.
| |
| enumAvailable | back to summary |
|---|---|
| protected void enumAvailable(final PoolEntryCallback<HttpRoute, ManagedHttpClientConnection> callback) Overrides org. Doc from org. Enumerates all available connections.
| |
| enumLeased | back to summary |
|---|---|
| protected void enumLeased(final PoolEntryCallback<HttpRoute, ManagedHttpClientConnection> callback) Overrides org. Doc from org. Enumerates all leased connections.
| |
| validate | back to summary |
|---|---|
| protected boolean validate(final CPoolEntry entry) Overrides org.
| |