@Contract(threading=SAFE) public class BasicNIOPoolEntry extends PoolEntry<HttpHost,NHttpClientConnection>
PoolEntry
implementation that represents an entry
in a pool of non-blocking NHttpClientConnection
s identified by
an HttpHost
instance.HttpHost
Modifier and Type | Field and Description |
---|---|
private int |
socketTimeout |
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.
|
(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, updateExpiry
private volatile int socketTimeout
public BasicNIOPoolEntry(String id, HttpHost route, NHttpClientConnection conn)
public void close()
PoolEntry
close
in class PoolEntry<HttpHost,NHttpClientConnection>
public boolean isClosed()
PoolEntry
true
if the pool entry has been invalidated.isClosed
in class PoolEntry<HttpHost,NHttpClientConnection>
int getSocketTimeout()
void setSocketTimeout(int socketTimeout)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses