Package org.apache.http.impl.nio.pool
Class BasicNIOPoolEntry
java.lang.Object
org.apache.http.pool.PoolEntry<HttpHost,NHttpClientConnection>
org.apache.http.impl.nio.pool.BasicNIOPoolEntry
@Contract(threading=SAFE)
public class BasicNIOPoolEntry
extends PoolEntry<HttpHost,NHttpClientConnection>
A basic
PoolEntry
implementation that represents an entry
in a pool of non-blocking NHttpClientConnection
s identified by
an HttpHost
instance.- Since:
- 4.2
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Invalidates the pool entry and closes the pooled connection associated with it.(package private) int
boolean
isClosed()
Returnstrue
if the pool entry has been invalidated.(package private) void
setSocketTimeout
(int socketTimeout) Methods inherited from class org.apache.http.pool.PoolEntry
getConnection, getCreated, getExpiry, getId, getRoute, getState, getUpdated, getValidityDeadline, getValidUnit, isExpired, setState, toString, updateExpiry
-
Field Details
-
socketTimeout
private volatile int socketTimeout
-
-
Constructor Details
-
BasicNIOPoolEntry
-
-
Method Details
-
close
public void close()Description copied from class:PoolEntry
Invalidates the pool entry and closes the pooled connection associated with it.- Specified by:
close
in classPoolEntry<HttpHost,
NHttpClientConnection>
-
isClosed
public boolean isClosed()Description copied from class:PoolEntry
Returnstrue
if the pool entry has been invalidated.- Specified by:
isClosed
in classPoolEntry<HttpHost,
NHttpClientConnection>
-
getSocketTimeout
int getSocketTimeout() -
setSocketTimeout
void setSocketTimeout(int socketTimeout)
-