@Contract(threading=SAFE) class CPoolEntry extends org.apache.http.pool.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,
java.lang.String id,
HttpRoute route,
ManagedHttpClientConnection conn,
long timeToLive,
java.util.concurrent.TimeUnit tunit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection() |
boolean |
isClosed() |
boolean |
isExpired(long now) |
boolean |
isRouteComplete() |
void |
markRouteComplete() |
void |
shutdownConnection() |
private final org.apache.commons.logging.Log log
private volatile boolean routeComplete
public CPoolEntry(org.apache.commons.logging.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 org.apache.http.pool.PoolEntry<HttpRoute,ManagedHttpClientConnection>public boolean isClosed()
isClosed in class org.apache.http.pool.PoolEntry<HttpRoute,ManagedHttpClientConnection>public void close()
close in class org.apache.http.pool.PoolEntry<HttpRoute,ManagedHttpClientConnection>