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

pack-priv Class CPoolEntry

extends PoolEntry<HttpRoute, ManagedHttpClientConnection>
Class Inheritance
Annotations
@Contract
threading:SAFE
Imports
java.io.IOException, java.util.Date, java.util.concurrent.TimeUnit, org.apache.commons.logging.Log, org.apache.http.HttpClientConnection, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.conn.ManagedHttpClientConnection, org.apache.http.conn.routing.HttpRoute, org.apache.http.pool.PoolEntry

Since
4.3

Field Summary

Modifier and TypeField and Description
private final Log
private volatile boolean

Constructor Summary

AccessConstructor and Description
public
CPoolEntry(final Log log, final String id, final HttpRoute route, final ManagedHttpClientConnection conn, final long timeToLive, final TimeUnit timeUnit)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements abstract org.apache.http.pool.PoolEntry.close.

Invalidates the pool entry and closes the pooled connection associated with it.
public void
public boolean
isClosed()

Implements abstract org.apache.http.pool.PoolEntry.isClosed.

Returns true if the pool entry has been invalidated.
public boolean
public boolean
public void
public void
Inherited from org.apache.http.pool.PoolEntry:
getConnectiongetCreatedgetExpirygetIdgetRoutegetStategetUpdatedgetValidityDeadlinegetValidUnitsetStatetoStringupdateExpiry

Field Detail

logback to summary
private final Log log
routeCompleteback to summary
private volatile boolean routeComplete

Constructor Detail

CPoolEntryback to summary
public CPoolEntry(final Log log, final String id, final HttpRoute route, final ManagedHttpClientConnection conn, final long timeToLive, final TimeUnit timeUnit)

Method Detail

closeback to summary
public void close()

Implements abstract org.apache.http.pool.PoolEntry.close.

Doc from org.apache.http.pool.PoolEntry.close.

Invalidates the pool entry and closes the pooled connection associated with it.

Annotations
@Override
closeConnectionback to summary
public void closeConnection() throws IOException
isClosedback to summary
public boolean isClosed()

Implements abstract org.apache.http.pool.PoolEntry.isClosed.

Doc from org.apache.http.pool.PoolEntry.isClosed.

Returns true if the pool entry has been invalidated.

Annotations
@Override
isExpiredback to summary
public boolean isExpired(final long now)

Overrides org.apache.http.pool.PoolEntry.isExpired.

Annotations
@Override
isRouteCompleteback to summary
public boolean isRouteComplete()
markRouteCompleteback to summary
public void markRouteComplete()
shutdownConnectionback to summary
public void shutdownConnection() throws IOException