|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.conn.AbstractPoolEntry org.apache.http.impl.conn.tsccm.BasicPoolEntry
PoolEntry
@Deprecated public class BasicPoolEntry
Basic implementation of a connection pool entry.
Field Summary |
---|
Fields inherited from class org.apache.http.impl.conn.AbstractPoolEntry |
---|
connection, connOperator, route, state, tracker |
Constructor Summary | |
---|---|
BasicPoolEntry(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 | |
---|---|
protected OperatedClientConnection |
getConnection()
Deprecated. |
long |
getCreated()
Deprecated. |
long |
getExpiry()
Deprecated. |
protected HttpRoute |
getPlannedRoute()
Deprecated. |
long |
getUpdated()
Deprecated. |
long |
getValidUntil()
Deprecated. |
protected BasicPoolEntryRef |
getWeakRef()
Deprecated. |
boolean |
isExpired(long now)
Deprecated. |
protected void |
shutdownEntry()
Deprecated. Shuts down the entry. |
void |
updateExpiry(long time,
TimeUnit timeunit)
Deprecated. |
Methods inherited from class org.apache.http.impl.conn.AbstractPoolEntry |
---|
getState, layerProtocol, open, setState, tunnelProxy, tunnelTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue)
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route)
op
- the connection operatorroute
- the planned route for the connectionpublic BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit)
op
- the connection operatorroute
- the planned route for the connectionconnTTL
- maximum lifetime of this entry, <=0 implies "infinity"timeunit
- TimeUnit of connTTLMethod Detail |
---|
protected final OperatedClientConnection getConnection()
protected final HttpRoute getPlannedRoute()
protected final BasicPoolEntryRef getWeakRef()
protected void shutdownEntry()
AbstractPoolEntry
AbstractPoolEntry.open(HttpRoute, HttpContext, HttpParams)
is in progress,
this will cause that open to possibly throw an IOException
.
shutdownEntry
in class AbstractPoolEntry
public long getCreated()
public long getUpdated()
public long getExpiry()
public long getValidUntil()
public void updateExpiry(long time, TimeUnit timeunit)
public boolean isExpired(long now)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |