Top Description Fields Constructors Methods
org.apache.http.impl.conn.tsccm

public Class BasicPoolEntry

extends AbstractPoolEntry
Class Inheritance
Annotations
@Deprecated
Imports
java.lang.ref.ReferenceQueue, java.util.concurrent.TimeUnit, org.apache.http.conn.ClientConnectionOperator, .OperatedClientConnection, org.apache.http.conn.routing.HttpRoute, org.apache.http.impl.conn.AbstractPoolEntry, org.apache.http.util.Args

Deprecated

(4.2) use org.apache.http.pool.PoolEntry

Basic implementation of a connection pool entry.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final long
private long
private long
private final long
Inherited from org.apache.http.impl.conn.AbstractPoolEntry:
connectionconnOperatorroutestatetracker

Constructor Summary

AccessConstructor and Description
public
BasicPoolEntry(final ClientConnectionOperator op, final HttpRoute route, final ReferenceQueue<Object> queue)

Deprecated as a consequence of ClientConnectionOperator being deprecated.
public
BasicPoolEntry(final ClientConnectionOperator
the connection operator
op
,
final HttpRoute
the planned route for the connection
route
)

Deprecated as a consequence of ClientConnectionOperator being deprecated.
Creates a new pool entry.
public
BasicPoolEntry(final ClientConnectionOperator
the connection operator
op
,
final HttpRoute
the planned route for the connection
route
,
final long
maximum lifetime of this entry, <=0 implies "infinity"
connTTL
,
final TimeUnit
TimeUnit of connTTL
timeunit
)

Deprecated as a consequence of ClientConnectionOperator being deprecated.
Creates a new pool entry with a specified maximum lifetime.

Method Summary

Modifier and TypeMethod and Description
protected final OperatedClientConnection
getConnection()

Deprecated as a consequence of OperatedClientConnection being deprecated.
public long
public long
protected final HttpRoute
public long
public long
protected final BasicPoolEntryRef
getWeakRef()

Deprecated as a consequence of BasicPoolEntryRef being deprecated.
public boolean
isExpired(final long now)

protected void
public void
updateExpiry(final long time, final TimeUnit timeunit)

Inherited from org.apache.http.impl.conn.AbstractPoolEntry:
getStatelayerProtocolopensetStatetunnelProxytunnelTarget

Field Detail

createdback to summary
private final long created
expiryback to summary
private long expiry
updatedback to summary
private long updated
validUntilback to summary
private final long validUntil

Constructor Detail

BasicPoolEntryback to summary
public BasicPoolEntry(final ClientConnectionOperator op, final HttpRoute route, final ReferenceQueue<Object> queue)

Deprecated

as a consequence of ClientConnectionOperator being deprecated. See corresponding docs for further information.

BasicPoolEntryback to summary
public BasicPoolEntry(final ClientConnectionOperator op, final HttpRoute route)

Deprecated

as a consequence of ClientConnectionOperator being deprecated. See corresponding docs for further information.

Creates a new pool entry.

Parameters
op:ClientConnectionOperator

the connection operator

route:HttpRoute

the planned route for the connection

BasicPoolEntryback to summary
public BasicPoolEntry(final ClientConnectionOperator op, final HttpRoute route, final long connTTL, final TimeUnit timeunit)

Deprecated

as a consequence of ClientConnectionOperator being deprecated. See corresponding docs for further information.

Creates a new pool entry with a specified maximum lifetime.

Parameters
op:ClientConnectionOperator

the connection operator

route:HttpRoute

the planned route for the connection

connTTL:long

maximum lifetime of this entry, <=0 implies "infinity"

timeunit:TimeUnit

TimeUnit of connTTL

Since
4.1

Method Detail

getConnectionback to summary
protected final OperatedClientConnection getConnection()

Deprecated

as a consequence of OperatedClientConnection being deprecated. See corresponding docs for further information.

getCreatedback to summary
public long getCreated()
Since
4.1
getExpiryback to summary
public long getExpiry()
Since
4.1
getPlannedRouteback to summary
protected final HttpRoute getPlannedRoute()
getUpdatedback to summary
public long getUpdated()
Since
4.1
getValidUntilback to summary
public long getValidUntil()
getWeakRefback to summary
protected final BasicPoolEntryRef getWeakRef()

Deprecated

as a consequence of BasicPoolEntryRef being deprecated. See corresponding docs for further information.

isExpiredback to summary
public boolean isExpired(final long now)
Since
4.1
shutdownEntryback to summary
protected void shutdownEntry()

Overrides org.apache.http.impl.conn.AbstractPoolEntry.shutdownEntry.

Doc from org.apache.http.impl.conn.AbstractPoolEntry.shutdownEntry.

Shuts down the entry. If open(HttpRoute, HttpContext, HttpParams) is in progress, this will cause that open to possibly throw an IOException.

Annotations
@Override
updateExpiryback to summary
public void updateExpiry(final long time, final TimeUnit timeunit)
Since
4.1