@Contract(threading=SAFE) public class BasicNIOPoolEntry extends PoolEntry<HttpHost,NHttpClientConnection>
PoolEntry implementation that represents an entry
in a pool of non-blocking NHttpClientConnections identified by
an HttpHost instance.HttpHost| Constructor and Description |
|---|
BasicNIOPoolEntry(String id,
HttpHost route,
NHttpClientConnection 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 BasicNIOPoolEntry(String id, HttpHost route, NHttpClientConnection conn)
public void close()
PoolEntryclose in class PoolEntry<HttpHost,NHttpClientConnection>public boolean isClosed()
PoolEntrytrue if the pool entry has been invalidated.isClosed in class PoolEntry<HttpHost,NHttpClientConnection>Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.