@Deprecated class ManagedClientAsyncConnectionImpl extends java.lang.Object implements ManagedClientAsyncConnection
Modifier and Type | Field and Description |
---|---|
private ClientAsyncConnectionFactory |
connFactory
Deprecated.
|
private long |
duration
Deprecated.
|
private ClientAsyncConnectionManager |
manager
Deprecated.
|
private HttpPoolEntry |
poolEntry
Deprecated.
|
private boolean |
reusable
Deprecated.
|
Constructor and Description |
---|
ManagedClientAsyncConnectionImpl(ClientAsyncConnectionManager manager,
ClientAsyncConnectionFactory connFactory,
HttpPoolEntry poolEntry)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
abortConnection()
Deprecated.
|
void |
close()
Deprecated.
|
(package private) HttpPoolEntry |
detach()
Deprecated.
|
private ClientAsyncConnection |
ensureConnection()
Deprecated.
|
private HttpPoolEntry |
ensurePoolEntry()
Deprecated.
|
private ClientAsyncConnection |
getConnection()
Deprecated.
|
org.apache.http.protocol.HttpContext |
getContext()
Deprecated.
|
org.apache.http.HttpRequest |
getHttpRequest()
Deprecated.
|
org.apache.http.HttpResponse |
getHttpResponse()
Deprecated.
|
java.net.InetAddress |
getLocalAddress()
Deprecated.
|
int |
getLocalPort()
Deprecated.
|
ClientAsyncConnectionManager |
getManager()
Deprecated.
|
org.apache.http.HttpConnectionMetrics |
getMetrics()
Deprecated.
|
(package private) HttpPoolEntry |
getPoolEntry()
Deprecated.
|
java.net.InetAddress |
getRemoteAddress()
Deprecated.
|
int |
getRemotePort()
Deprecated.
|
org.apache.http.conn.routing.HttpRoute |
getRoute()
Deprecated.
|
private AsyncSchemeRegistry |
getSchemeRegistry(org.apache.http.protocol.HttpContext context)
Deprecated.
|
int |
getSocketTimeout()
Deprecated.
|
javax.net.ssl.SSLSession |
getSSLSession()
Deprecated.
|
java.lang.Object |
getState()
Deprecated.
|
int |
getStatus()
Deprecated.
|
boolean |
isMarkedReusable()
Deprecated.
|
boolean |
isOpen()
Deprecated.
|
boolean |
isRequestSubmitted()
Deprecated.
|
boolean |
isSecure()
Deprecated.
|
boolean |
isStale()
Deprecated.
|
void |
layerProtocol(org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Deprecated.
|
void |
markReusable()
Deprecated.
|
void |
open(org.apache.http.conn.routing.HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
Deprecated.
|
void |
releaseConnection()
Deprecated.
|
void |
requestInput()
Deprecated.
|
void |
requestOutput()
Deprecated.
|
void |
resetInput()
Deprecated.
|
void |
resetOutput()
Deprecated.
|
void |
setIdleDuration(long duration,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
void |
setSocketTimeout(int timeout)
Deprecated.
|
void |
setState(java.lang.Object state)
Deprecated.
|
void |
shutdown()
Deprecated.
|
void |
submitRequest(org.apache.http.HttpRequest request)
Deprecated.
|
void |
suspendInput()
Deprecated.
|
void |
suspendOutput()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
void |
tunnelProxy(org.apache.http.HttpHost next,
org.apache.http.params.HttpParams params)
Deprecated.
|
void |
tunnelTarget(org.apache.http.params.HttpParams params)
Deprecated.
|
void |
unmarkReusable()
Deprecated.
|
private final ClientAsyncConnectionManager manager
private final ClientAsyncConnectionFactory connFactory
private volatile HttpPoolEntry poolEntry
private volatile boolean reusable
private volatile long duration
ManagedClientAsyncConnectionImpl(ClientAsyncConnectionManager manager, ClientAsyncConnectionFactory connFactory, HttpPoolEntry poolEntry)
HttpPoolEntry getPoolEntry()
HttpPoolEntry detach()
public ClientAsyncConnectionManager getManager()
private ClientAsyncConnection getConnection()
private ClientAsyncConnection ensureConnection()
private HttpPoolEntry ensurePoolEntry()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface org.apache.http.HttpConnection
java.io.IOException
public void shutdown() throws java.io.IOException
shutdown
in interface org.apache.http.HttpConnection
shutdown
in interface org.apache.http.nio.IOControl
java.io.IOException
public boolean isOpen()
isOpen
in interface org.apache.http.HttpConnection
public boolean isStale()
isStale
in interface org.apache.http.HttpConnection
public void setSocketTimeout(int timeout)
setSocketTimeout
in interface org.apache.http.HttpConnection
public int getSocketTimeout()
getSocketTimeout
in interface org.apache.http.HttpConnection
public org.apache.http.HttpConnectionMetrics getMetrics()
getMetrics
in interface org.apache.http.HttpConnection
public java.net.InetAddress getLocalAddress()
getLocalAddress
in interface org.apache.http.HttpInetConnection
public int getLocalPort()
getLocalPort
in interface org.apache.http.HttpInetConnection
public java.net.InetAddress getRemoteAddress()
getRemoteAddress
in interface org.apache.http.HttpInetConnection
public int getRemotePort()
getRemotePort
in interface org.apache.http.HttpInetConnection
public int getStatus()
getStatus
in interface org.apache.http.nio.NHttpConnection
public org.apache.http.HttpRequest getHttpRequest()
getHttpRequest
in interface org.apache.http.nio.NHttpConnection
public org.apache.http.HttpResponse getHttpResponse()
getHttpResponse
in interface org.apache.http.nio.NHttpConnection
public org.apache.http.protocol.HttpContext getContext()
getContext
in interface org.apache.http.nio.NHttpConnection
public void requestInput()
requestInput
in interface org.apache.http.nio.IOControl
public void suspendInput()
suspendInput
in interface org.apache.http.nio.IOControl
public void requestOutput()
requestOutput
in interface org.apache.http.nio.IOControl
public void suspendOutput()
suspendOutput
in interface org.apache.http.nio.IOControl
public void submitRequest(org.apache.http.HttpRequest request) throws java.io.IOException, org.apache.http.HttpException
submitRequest
in interface org.apache.http.nio.NHttpClientConnection
java.io.IOException
org.apache.http.HttpException
public boolean isRequestSubmitted()
isRequestSubmitted
in interface org.apache.http.nio.NHttpClientConnection
public void resetOutput()
resetOutput
in interface org.apache.http.nio.NHttpClientConnection
public void resetInput()
resetInput
in interface org.apache.http.nio.NHttpClientConnection
public boolean isSecure()
isSecure
in interface org.apache.http.conn.HttpRoutedConnection
public org.apache.http.conn.routing.HttpRoute getRoute()
getRoute
in interface org.apache.http.conn.HttpRoutedConnection
public javax.net.ssl.SSLSession getSSLSession()
getSSLSession
in interface org.apache.http.conn.HttpRoutedConnection
public java.lang.Object getState()
getState
in interface ManagedClientAsyncConnection
public void setState(java.lang.Object state)
setState
in interface ManagedClientAsyncConnection
public void markReusable()
markReusable
in interface ManagedClientAsyncConnection
public void unmarkReusable()
unmarkReusable
in interface ManagedClientAsyncConnection
public boolean isMarkedReusable()
isMarkedReusable
in interface ManagedClientAsyncConnection
public void setIdleDuration(long duration, java.util.concurrent.TimeUnit unit)
setIdleDuration
in interface ManagedClientAsyncConnection
private AsyncSchemeRegistry getSchemeRegistry(org.apache.http.protocol.HttpContext context)
public void open(org.apache.http.conn.routing.HttpRoute route, org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params) throws java.io.IOException
open
in interface ManagedClientAsyncConnection
java.io.IOException
public void tunnelProxy(org.apache.http.HttpHost next, org.apache.http.params.HttpParams params) throws java.io.IOException
tunnelProxy
in interface ManagedClientAsyncConnection
java.io.IOException
public void tunnelTarget(org.apache.http.params.HttpParams params) throws java.io.IOException
tunnelTarget
in interface ManagedClientAsyncConnection
java.io.IOException
public void layerProtocol(org.apache.http.protocol.HttpContext context, org.apache.http.params.HttpParams params) throws java.io.IOException
layerProtocol
in interface ManagedClientAsyncConnection
java.io.IOException
public void releaseConnection()
releaseConnection
in interface org.apache.http.conn.ConnectionReleaseTrigger
public void abortConnection()
abortConnection
in interface org.apache.http.conn.ConnectionReleaseTrigger
public java.lang.String toString()
toString
in class java.lang.Object