Top Description Constructors Methods
org.apache.http.impl.pool

public Class BasicPoolEntry

extends PoolEntry<HttpHost, HttpClientConnection>
Class Inheritance
Annotations
@Contract
threading:SAFE_CONDITIONAL
Imports
java.io.IOException, org.apache.http.HttpClientConnection, .HttpHost, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.pool.PoolEntry

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

Constructor Summary

AccessConstructor and Description
public
BasicPoolEntry(final String id, final HttpHost route, final HttpClientConnection conn)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements abstract org.apache.http.pool.PoolEntry.close.

Invalidates the pool entry and closes the pooled connection associated with it.
public boolean
isClosed()

Implements abstract org.apache.http.pool.PoolEntry.isClosed.

Returns true if the pool entry has been invalidated.
Inherited from org.apache.http.pool.PoolEntry:
getConnectiongetCreatedgetExpirygetIdgetRoutegetStategetUpdatedgetValidityDeadlinegetValidUnitisExpiredsetStatetoStringupdateExpiry

Constructor Detail

BasicPoolEntryback to summary
public BasicPoolEntry(final String id, final HttpHost route, final HttpClientConnection conn)

Method Detail

closeback to summary
public void close()

Implements abstract org.apache.http.pool.PoolEntry.close.

Doc from org.apache.http.pool.PoolEntry.close.

Invalidates the pool entry and closes the pooled connection associated with it.

Annotations
@Override
isClosedback to summary
public boolean isClosed()

Implements abstract org.apache.http.pool.PoolEntry.isClosed.

Doc from org.apache.http.pool.PoolEntry.isClosed.

Returns true if the pool entry has been invalidated.

Annotations
@Override