PoolEntry
@Deprecated public class BasicPoolEntry extends AbstractPoolEntry
connection, connOperator, route, state, tracker
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getState, layerProtocol, open, setState, tunnelProxy, tunnelTarget
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 connTTLprotected 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)
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.