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 public class BasicPoolEntry extends AbstractPoolEntry
Deprecated.(4.2) usePoolEntryBasic implementation of a connection pool entry.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description BasicPoolEntry(ClientConnectionOperator op, HttpRoute route)Deprecated.Creates a new pool entry.BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, java.util.concurrent.TimeUnit timeunit)Deprecated.Creates a new pool entry with a specified maximum lifetime.BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, java.lang.ref.ReferenceQueue<java.lang.Object> queue)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetCreated()Deprecated.longgetExpiry()Deprecated.longgetUpdated()Deprecated.longgetValidUntil()Deprecated.booleanisExpired(long now)Deprecated.voidupdateExpiry(long time, java.util.concurrent.TimeUnit timeunit)Deprecated.-
Methods inherited from class org.apache.http.impl.conn.AbstractPoolEntry
getState, layerProtocol, open, setState, tunnelProxy, tunnelTarget
-
-
-
-
Constructor Detail
-
BasicPoolEntry
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, java.lang.ref.ReferenceQueue<java.lang.Object> queue)
Deprecated.
-
BasicPoolEntry
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route)
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, java.util.concurrent.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 Detail
-
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
public void updateExpiry(long time, java.util.concurrent.TimeUnit timeunit)Deprecated.- Since:
- 4.1
-
isExpired
public boolean isExpired(long now)
Deprecated.- Since:
- 4.1
-
-