Package org.apache.http.impl.conn.tsccm
Class BasicPoolEntry
java.lang.Object
org.apache.http.impl.conn.AbstractPoolEntry
org.apache.http.impl.conn.tsccm.BasicPoolEntry
Deprecated.
Basic implementation of a connection pool entry.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longDeprecated.private longDeprecated.private longDeprecated.private final longDeprecated.Fields inherited from class org.apache.http.impl.conn.AbstractPoolEntry
connection, connOperator, route, state, tracker -
Constructor Summary
ConstructorsConstructorDescriptionBasicPoolEntry(ClientConnectionOperator op, HttpRoute route) Deprecated.Creates a new pool entry.BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit) Deprecated.Creates a new pool entry with a specified maximum lifetime.BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected final OperatedClientConnectionDeprecated.longDeprecated.longDeprecated.protected final HttpRouteDeprecated.longDeprecated.longDeprecated.protected final BasicPoolEntryRefDeprecated.booleanisExpired(long now) Deprecated.protected voidDeprecated.Shuts down the entry.voidupdateExpiry(long time, TimeUnit timeunit) Deprecated.Methods inherited from class org.apache.http.impl.conn.AbstractPoolEntry
getState, layerProtocol, open, setState, tunnelProxy, tunnelTarget
-
Field Details
-
created
private final long createdDeprecated. -
updated
private long updatedDeprecated. -
validUntil
private final long validUntilDeprecated. -
expiry
private long expiryDeprecated.
-
-
Constructor Details
-
BasicPoolEntry
Deprecated. -
BasicPoolEntry
Deprecated.Creates a new pool entry.- Parameters:
op- the connection operatorroute- the planned route for the connection
-
BasicPoolEntry
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit) Deprecated.Creates a new pool entry with a specified maximum lifetime.- Parameters:
op- the connection operatorroute- the planned route for the connectionconnTTL- maximum lifetime of this entry, <=0 implies "infinity"timeunit- TimeUnit of connTTL- Since:
- 4.1
-
-
Method Details
-
getConnection
Deprecated. -
getPlannedRoute
Deprecated. -
getWeakRef
Deprecated. -
shutdownEntry
protected void shutdownEntry()Deprecated.Description copied from class:AbstractPoolEntryShuts down the entry. IfAbstractPoolEntry.open(HttpRoute, HttpContext, HttpParams)is in progress, this will cause that open to possibly throw anIOException.- Overrides:
shutdownEntryin classAbstractPoolEntry
-
getCreated
public long getCreated()Deprecated.- Since:
- 4.1
-
getUpdated
public long getUpdated()Deprecated.- Since:
- 4.1
-
getExpiry
public long getExpiry()Deprecated.- Since:
- 4.1
-
getValidUntil
public long getValidUntil()Deprecated. -
updateExpiry
Deprecated.- Since:
- 4.1
-
isExpired
public boolean isExpired(long now) Deprecated.- Since:
- 4.1
-
PoolEntry