Package org.apache.http.impl.pool
Class BasicPoolEntry
- java.lang.Object
 - 
- org.apache.http.pool.PoolEntry<HttpHost,HttpClientConnection>
 - 
- org.apache.http.impl.pool.BasicPoolEntry
 
 
 
- 
@Contract(threading=SAFE_CONDITIONAL) public class BasicPoolEntry extends PoolEntry<HttpHost,HttpClientConnection>
A very basicPoolEntryimplementation that represents an entry in a pool of blockingHttpClientConnections identified by anHttpHostinstance.- Since:
 - 4.2
 - See Also:
 HttpHost
 
- 
- 
Constructor Summary
Constructors Constructor Description BasicPoolEntry(java.lang.String id, HttpHost route, HttpClientConnection conn) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Invalidates the pool entry and closes the pooled connection associated with it.booleanisClosed()Returnstrueif the pool entry has been invalidated.- 
Methods inherited from class org.apache.http.pool.PoolEntry
getConnection, getCreated, getExpiry, getId, getRoute, getState, getUpdated, getValidityDeadline, getValidUnit, isExpired, setState, toString, updateExpiry 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
BasicPoolEntry
public BasicPoolEntry(java.lang.String id, HttpHost route, HttpClientConnection conn) 
 - 
 
- 
Method Detail
- 
close
public void close()
Description copied from class:PoolEntryInvalidates the pool entry and closes the pooled connection associated with it.- Specified by:
 closein classPoolEntry<HttpHost,HttpClientConnection>
 
- 
isClosed
public boolean isClosed()
Description copied from class:PoolEntryReturnstrueif the pool entry has been invalidated.- Specified by:
 isClosedin classPoolEntry<HttpHost,HttpClientConnection>
 
 - 
 
 -