@ThreadSafe 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| 构造器和说明 |
|---|
BasicNIOPoolEntry(java.lang.String id,
HttpHost route,
NHttpClientConnection conn) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, getValidUnit, isExpired, setState, toString, updateExpirypublic BasicNIOPoolEntry(java.lang.String id,
HttpHost route,
NHttpClientConnection conn)
public void close()
PoolEntryclose 在类中 PoolEntry<HttpHost,NHttpClientConnection>public boolean isClosed()
PoolEntrytrue if the pool entry has been invalidated.isClosed 在类中 PoolEntry<HttpHost,NHttpClientConnection>