PoolEntry@Deprecated public class BasicPoolEntry extends AbstractPoolEntry
connection, connOperator, route, state, tracker| 构造器和说明 |
|---|
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)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected OperatedClientConnection |
getConnection()
已过时。
|
long |
getCreated()
已过时。
|
long |
getExpiry()
已过时。
|
protected HttpRoute |
getPlannedRoute()
已过时。
|
long |
getUpdated()
已过时。
|
long |
getValidUntil()
已过时。
|
protected BasicPoolEntryRef |
getWeakRef()
已过时。
|
boolean |
isExpired(long now)
已过时。
|
protected void |
shutdownEntry()
已过时。
Shuts down the entry.
|
void |
updateExpiry(long time,
java.util.concurrent.TimeUnit timeunit)
已过时。
|
getState, layerProtocol, open, setState, tunnelProxy, tunnelTargetpublic 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 connTTLprotected final OperatedClientConnection getConnection()
protected final HttpRoute getPlannedRoute()
protected final BasicPoolEntryRef getWeakRef()
protected void shutdownEntry()
AbstractPoolEntryAbstractPoolEntry.open(HttpRoute, HttpContext, HttpParams) is in progress,
this will cause that open to possibly throw an IOException.shutdownEntry 在类中 AbstractPoolEntrypublic 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)