@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 and Description |
|---|
BasicPoolEntry(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, updateExpirypublic BasicPoolEntry(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>Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.