@Contract(threading=SAFE) class CPoolEntry extends PoolEntry<HttpRoute,ManagedHttpClientConnection>
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.logging.Log |
log |
private boolean |
routeComplete |
Constructor and Description |
---|
CPoolEntry(org.apache.commons.logging.Log log,
String id,
HttpRoute route,
ManagedHttpClientConnection conn,
long timeToLive,
TimeUnit tunit) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Invalidates the pool entry and closes the pooled connection associated
with it.
|
void |
closeConnection() |
boolean |
isClosed()
Returns
true if the pool entry has been invalidated. |
boolean |
isExpired(long now) |
boolean |
isRouteComplete() |
void |
markRouteComplete() |
void |
shutdownConnection() |
getConnection, getCreated, getExpiry, getId, getRoute, getState, getUpdated, getValidityDeadline, getValidUnit, setState, toString, updateExpiry
private final org.apache.commons.logging.Log log
private volatile boolean routeComplete
public CPoolEntry(org.apache.commons.logging.Log log, String id, HttpRoute route, ManagedHttpClientConnection conn, long timeToLive, TimeUnit tunit)
public void markRouteComplete()
public boolean isRouteComplete()
public void closeConnection() throws IOException
IOException
public void shutdownConnection() throws IOException
IOException
public boolean isExpired(long now)
isExpired
in class PoolEntry<HttpRoute,ManagedHttpClientConnection>
public boolean isClosed()
PoolEntry
true
if the pool entry has been invalidated.isClosed
in class PoolEntry<HttpRoute,ManagedHttpClientConnection>
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses