@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| Modifier and Type | Field and Description |
|---|---|
private int |
socketTimeout |
| Constructor and Description |
|---|
BasicNIOPoolEntry(java.lang.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.
|
(package private) int |
getSocketTimeout() |
boolean |
isClosed()
Returns
true if the pool entry has been invalidated. |
(package private) void |
setSocketTimeout(int socketTimeout) |
getConnection, getCreated, getExpiry, getId, getRoute, getState, getUpdated, getValidityDeadline, getValidUnit, isExpired, setState, toString, updateExpirypublic BasicNIOPoolEntry(java.lang.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>int getSocketTimeout()
void setSocketTimeout(int socketTimeout)