@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, updateExpirypublic 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.IOExceptionpublic void shutdownConnection()
throws java.io.IOException
java.io.IOExceptionpublic boolean isExpired(long now)
isExpired in class PoolEntry<HttpRoute,ManagedHttpClientConnection>public boolean isClosed()
PoolEntrytrue if the pool entry has been invalidated.isClosed in class PoolEntry<HttpRoute,ManagedHttpClientConnection>public void close()
PoolEntryclose in class PoolEntry<HttpRoute,ManagedHttpClientConnection>