@ThreadSafe class CPoolEntry extends PoolEntry<HttpRoute,ManagedHttpClientConnection>
Constructor and Description |
---|
CPoolEntry(Log log,
java.lang.String id,
HttpRoute route,
ManagedHttpClientConnection conn,
long timeToLive,
java.util.concurrent.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
public CPoolEntry(Log log, java.lang.String id, HttpRoute route, ManagedHttpClientConnection conn, long timeToLive, java.util.concurrent.TimeUnit tunit)
public void markRouteComplete()
public boolean isRouteComplete()
public void closeConnection() throws java.io.IOException
java.io.IOException
public void shutdownConnection() throws java.io.IOException
java.io.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>
public void close()
PoolEntry
close
in class PoolEntry<HttpRoute,ManagedHttpClientConnection>