@Contract(threading=SAFE_CONDITIONAL) public class BasicPoolEntry extends PoolEntry<HttpHost,HttpClientConnection>
PoolEntry implementation that represents an entry
in a pool of blocking HttpClientConnections identified by
an HttpHost instance.HttpHost| Constructor | Description |
|---|---|
BasicPoolEntry(java.lang.String id,
HttpHost route,
HttpClientConnection conn) |
| Modifier and Type | Method | 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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConnection, getCreated, getExpiry, getId, getRoute, getState, getUpdated, getValidityDeadline, getValidUnit, isExpired, setState, toString, updateExpirypublic BasicPoolEntry(java.lang.String id,
HttpHost route,
HttpClientConnection conn)
public void close()
PoolEntryclose in class PoolEntry<HttpHost,HttpClientConnection>public boolean isClosed()
PoolEntrytrue if the pool entry has been invalidated.isClosed in class PoolEntry<HttpHost,HttpClientConnection>