org.apache.http.impl.pool
Class BasicPoolEntry
java.lang.Object
   org.apache.http.pool.PoolEntry<HttpHost,HttpClientConnection>
org.apache.http.pool.PoolEntry<HttpHost,HttpClientConnection>
       org.apache.http.impl.pool.BasicPoolEntry
org.apache.http.impl.pool.BasicPoolEntry
- @Contract(threading=SAFE_CONDITIONAL)
public class BasicPoolEntry 
- extends PoolEntry<HttpHost,HttpClientConnection>
A very basic PoolEntry implementation that represents an entry
 in a pool of blocking HttpClientConnections identified by
 an HttpHost instance.
- Since:
- 4.2
- See Also:
- HttpHost
 
| Method Summary | 
|  void | close()Invalidates the pool entry and closes the pooled connection associated
 with it.
 | 
|  boolean | isClosed()Returns
 trueif 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 | 
 
 
BasicPoolEntry
public BasicPoolEntry(String id,
                      HttpHost route,
                      HttpClientConnection conn)
close
public void close()
- Description copied from class: PoolEntry
- Invalidates the pool entry and closes the pooled connection associated
 with it.
 
- 
- Specified by:
- closein class- PoolEntry<HttpHost,HttpClientConnection>
 
- 
 
isClosed
public boolean isClosed()
- Description copied from class: PoolEntry
- Returns trueif the pool entry has been invalidated.
 
- 
- Specified by:
- isClosedin class- PoolEntry<HttpHost,HttpClientConnection>
 
- 
 
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.