PoolEntry
@Deprecated public class BasicPoolEntry extends AbstractPoolEntry
connection, connOperator, route, state, tracker| Constructor and Description |
|---|
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route)
已过时。
创建一个新的池条目。
|
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit)
已过时。
创建一个具有指定最大生命周期的新池条目。
|
BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue)
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
protected OperatedClientConnection |
getConnection()
已过时。
|
long |
getCreated()
已过时。
|
long |
getExpiry()
已过时。
|
protected HttpRoute |
getPlannedRoute()
已过时。
|
long |
getUpdated()
已过时。
|
long |
getValidUntil()
已过时。
|
protected BasicPoolEntryRef |
getWeakRef()
已过时。
|
boolean |
isExpired(long now)
已过时。
|
protected void |
shutdownEntry()
已过时。
关闭条目。
|
void |
updateExpiry(long time, TimeUnit timeunit)
已过时。
|
getState, layerProtocol, open, setState, tunnelProxy, tunnelTargetpublic BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, ReferenceQueue<Object> queue)
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route)
op - 连接运算符
route - 连接的计划路由
public BasicPoolEntry(ClientConnectionOperator op, HttpRoute route, long connTTL, TimeUnit timeunit)
op - 连接运算符
route - 连接的计划路由
connTTL - 此条目的最大使用寿命,<= 0表示“无限远”
timeunit -
timeunit TimeUnit
protected final OperatedClientConnection getConnection()
protected final HttpRoute getPlannedRoute()
protected final BasicPoolEntryRef getWeakRef()
protected void shutdownEntry()
AbstractPoolEntry复制
AbstractPoolEntry.open(HttpRoute, HttpContext, HttpParams)正在进行中,这将导致打开可能会抛出IOException 。
public long getCreated()
public long getUpdated()
public long getExpiry()
public long getValidUntil()
public void updateExpiry(long time,
TimeUnit timeunit)
public boolean isExpired(long now)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.