@Deprecated
public abstract class AbstractPoolEntry
extends java.lang.Object
adapter.
The adapter is handed out to applications that obtain a connection.
The pool entry stores the underlying connection and tracks the
route established.
The adapter delegates methods for establishing the route to
its pool entry.
If the managed connections is released or revoked, the adapter gets disconnected, but the pool entry still contains the underlying connection and the established route.
| 限定符和类型 | 字段和说明 |
|---|---|
protected OperatedClientConnection |
connection
已过时。
The underlying connection being pooled or used.
|
protected ClientConnectionOperator |
connOperator
已过时。
The connection operator.
|
protected HttpRoute |
route
已过时。
The route for which this entry gets tlb.
|
protected java.lang.Object |
state
已过时。
Connection state object
|
protected RouteTracker |
tracker
已过时。
The tracked route, or
null before tracking starts. |
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractPoolEntry(ClientConnectionOperator connOperator,
HttpRoute route)
已过时。
Creates a new pool entry.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
getState()
已过时。
Returns the state object associated with this pool entry.
|
void |
layerProtocol(HttpContext context,
HttpParams params)
已过时。
Layers a protocol on top of an established tunnel.
|
void |
open(HttpRoute route,
HttpContext context,
HttpParams params)
已过时。
Opens the underlying connection.
|
void |
setState(java.lang.Object state)
已过时。
Assigns a state object to this pool entry.
|
protected void |
shutdownEntry()
已过时。
Shuts down the entry.
|
void |
tunnelProxy(HttpHost next,
boolean secure,
HttpParams params)
已过时。
Tracks tunnelling of the connection to a chained proxy.
|
void |
tunnelTarget(boolean secure,
HttpParams params)
已过时。
Tracks tunnelling of the connection to the target.
|
protected final ClientConnectionOperator connOperator
protected final OperatedClientConnection connection
protected volatile HttpRoute route
protected volatile java.lang.Object state
protected volatile RouteTracker tracker
null before tracking starts.protected AbstractPoolEntry(ClientConnectionOperator connOperator, HttpRoute route)
connOperator - the Connection Operator for this entryroute - the planned route for the connection,
or nullpublic java.lang.Object getState()
public void setState(java.lang.Object state)
state - The state objectpublic void open(HttpRoute route, HttpContext context, HttpParams params) throws java.io.IOException
route - the route along which to open the connectioncontext - the context for opening the connectionparams - the parameters for opening the connectionjava.io.IOException - in case of a problempublic void tunnelTarget(boolean secure,
HttpParams params)
throws java.io.IOException
secure - true if the tunnel should be
considered secure, false otherwiseparams - the parameters for tunnelling the connectionjava.io.IOException - in case of a problempublic void tunnelProxy(HttpHost next, boolean secure, HttpParams params) throws java.io.IOException
next - the proxy to which the tunnel was established.
See ManagedClientConnection.tunnelProxy
for details.secure - true if the tunnel should be
considered secure, false otherwiseparams - the parameters for tunnelling the connectionjava.io.IOException - in case of a problempublic void layerProtocol(HttpContext context, HttpParams params) throws java.io.IOException
context - the context for layeringparams - the parameters for layeringjava.io.IOException - in case of a problemprotected void shutdownEntry()
open(HttpRoute, HttpContext, HttpParams) is in progress,
this will cause that open to possibly throw an IOException.