@Deprecated public abstract class AbstractPoolEntry extends 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.
Modifier and Type | Field and Description |
---|---|
protected OperatedClientConnection |
connection
Deprecated.
The underlying connection being pooled or used.
|
protected ClientConnectionOperator |
connOperator
Deprecated.
The connection operator.
|
protected HttpRoute |
route
Deprecated.
The route for which this entry gets allocated.
|
protected Object |
state
Deprecated.
Connection state object
|
protected RouteTracker |
tracker
Deprecated.
The tracked route, or
null before tracking starts. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPoolEntry(ClientConnectionOperator connOperator,
HttpRoute route)
Deprecated.
Creates a new pool entry.
|
Modifier and Type | Method and Description |
---|---|
Object |
getState()
Deprecated.
Returns the state object associated with this pool entry.
|
void |
layerProtocol(org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Deprecated.
Layers a protocol on top of an established tunnel.
|
void |
open(HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Deprecated.
Opens the underlying connection.
|
void |
setState(Object state)
Deprecated.
Assigns a state object to this pool entry.
|
protected void |
shutdownEntry()
Deprecated.
Shuts down the entry.
|
void |
tunnelProxy(org.apache.http.HttpHost next,
boolean secure,
org.apache.http.params.HttpParams params)
Deprecated.
Tracks tunnelling of the connection to a chained proxy.
|
void |
tunnelTarget(boolean secure,
org.apache.http.params.HttpParams params)
Deprecated.
Tracks tunnelling of the connection to the target.
|
protected final ClientConnectionOperator connOperator
protected final OperatedClientConnection connection
protected volatile HttpRoute route
protected volatile 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 null
public Object getState()
public void setState(Object state)
state
- The state objectpublic void open(HttpRoute route, org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params) throws IOException
route
- the route along which to open the connectioncontext
- the context for opening the connectionparams
- the parameters for opening the connectionIOException
- in case of a problempublic void tunnelTarget(boolean secure, org.apache.http.params.HttpParams params) throws IOException
secure
- true
if the tunnel should be
considered secure, false
otherwiseparams
- the parameters for tunnelling the connectionIOException
- in case of a problempublic void tunnelProxy(org.apache.http.HttpHost next, boolean secure, org.apache.http.params.HttpParams params) throws 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 connectionIOException
- in case of a problempublic void layerProtocol(org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params) throws IOException
context
- the context for layeringparams
- the parameters for layeringIOException
- in case of a problemprotected void shutdownEntry()
open(HttpRoute, HttpContext, HttpParams)
is in progress,
this will cause that open to possibly throw an IOException
.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.