|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.conn.AbstractPoolEntry
org.apache.http.impl.conn.tsccm.BasicPoolEntry
@NotThreadSafe 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)
Creates a new pool entry. |
|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route,
long connTTL,
java.util.concurrent.TimeUnit timeunit)
Creates a new pool entry with a specified maximum lifetime. |
|
BasicPoolEntry(ClientConnectionOperator op,
HttpRoute route,
java.lang.ref.ReferenceQueue<java.lang.Object> queue)
Deprecated. do not use |
Method Summary | |
---|---|
protected OperatedClientConnection |
getConnection()
|
long |
getCreated()
|
long |
getExpiry()
|
protected HttpRoute |
getPlannedRoute()
|
long |
getUpdated()
|
long |
getValidUntil()
|
protected BasicPoolEntryRef |
getWeakRef()
Deprecated. |
boolean |
isExpired(long now)
|
protected void |
shutdownEntry()
Shuts down the entry. |
void |
updateExpiry(long time,
java.util.concurrent.TimeUnit timeunit)
|
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 |
---|
@Deprecated public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, java.lang.ref.ReferenceQueue<java.lang.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, java.util.concurrent.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()
@Deprecated 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, java.util.concurrent.TimeUnit timeunit)
public boolean isExpired(long now)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |