@ThreadSafe public class BasicPoolEntry extends PoolEntry<HttpHost,HttpClientConnection>
PoolEntry
implementation that represents an entry
in a pool of blocking HttpClientConnection
s identified by
an HttpHost
instance.HttpHost
Constructor and Description |
---|
BasicPoolEntry(java.lang.String id,
HttpHost route,
HttpClientConnection conn) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Invalidates the pool entry and closes the pooled connection associated
with it.
|
boolean |
isClosed()
Returns
true if the pool entry has been invalidated. |
getConnection, getCreated, getExpiry, getId, getRoute, getState, getUpdated, getValidityDeadline, getValidUnit, isExpired, setState, toString, updateExpiry
public BasicPoolEntry(java.lang.String id, HttpHost route, HttpClientConnection conn)
public void close()
PoolEntry
close
in class PoolEntry<HttpHost,HttpClientConnection>
public boolean isClosed()
PoolEntry
true
if the pool entry has been invalidated.isClosed
in class PoolEntry<HttpHost,HttpClientConnection>