@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.Closeableclose in interface java.lang.AutoCloseableclose in interface org.apache.http.HttpConnectionjava.io.IOExceptionpublic void shutdown()
throws java.io.IOException
shutdown in interface org.apache.http.HttpConnectionshutdown in interface org.apache.http.nio.IOControljava.io.IOExceptionpublic boolean isOpen()
isOpen in interface org.apache.http.HttpConnectionpublic boolean isStale()
isStale in interface org.apache.http.HttpConnectionpublic void setSocketTimeout(int timeout)
setSocketTimeout in interface org.apache.http.HttpConnectionpublic int getSocketTimeout()
getSocketTimeout in interface org.apache.http.HttpConnectionpublic org.apache.http.HttpConnectionMetrics getMetrics()
getMetrics in interface org.apache.http.HttpConnectionpublic java.net.InetAddress getLocalAddress()
getLocalAddress in interface org.apache.http.HttpInetConnectionpublic int getLocalPort()
getLocalPort in interface org.apache.http.HttpInetConnectionpublic java.net.InetAddress getRemoteAddress()
getRemoteAddress in interface org.apache.http.HttpInetConnectionpublic int getRemotePort()
getRemotePort in interface org.apache.http.HttpInetConnectionpublic int getStatus()
getStatus in interface org.apache.http.nio.NHttpConnectionpublic org.apache.http.HttpRequest getHttpRequest()
getHttpRequest in interface org.apache.http.nio.NHttpConnectionpublic org.apache.http.HttpResponse getHttpResponse()
getHttpResponse in interface org.apache.http.nio.NHttpConnectionpublic org.apache.http.protocol.HttpContext getContext()
getContext in interface org.apache.http.nio.NHttpConnectionpublic void requestInput()
requestInput in interface org.apache.http.nio.IOControlpublic void suspendInput()
suspendInput in interface org.apache.http.nio.IOControlpublic void requestOutput()
requestOutput in interface org.apache.http.nio.IOControlpublic void suspendOutput()
suspendOutput in interface org.apache.http.nio.IOControlpublic void submitRequest(org.apache.http.HttpRequest request)
throws java.io.IOException,
org.apache.http.HttpException
submitRequest in interface org.apache.http.nio.NHttpClientConnectionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic boolean isRequestSubmitted()
isRequestSubmitted in interface org.apache.http.nio.NHttpClientConnectionpublic void resetOutput()
resetOutput in interface org.apache.http.nio.NHttpClientConnectionpublic void resetInput()
resetInput in interface org.apache.http.nio.NHttpClientConnectionpublic boolean isSecure()
isSecure in interface org.apache.http.conn.HttpRoutedConnectionpublic org.apache.http.conn.routing.HttpRoute getRoute()
getRoute in interface org.apache.http.conn.HttpRoutedConnectionpublic javax.net.ssl.SSLSession getSSLSession()
getSSLSession in interface org.apache.http.conn.HttpRoutedConnectionpublic java.lang.Object getState()
getState in interface ManagedClientAsyncConnectionpublic void setState(java.lang.Object state)
setState in interface ManagedClientAsyncConnectionpublic void markReusable()
markReusable in interface ManagedClientAsyncConnectionpublic void unmarkReusable()
unmarkReusable in interface ManagedClientAsyncConnectionpublic boolean isMarkedReusable()
isMarkedReusable in interface ManagedClientAsyncConnectionpublic void setIdleDuration(long duration,
java.util.concurrent.TimeUnit unit)
setIdleDuration in interface ManagedClientAsyncConnectionprivate 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 ManagedClientAsyncConnectionjava.io.IOExceptionpublic void tunnelProxy(org.apache.http.HttpHost next,
org.apache.http.params.HttpParams params)
throws java.io.IOException
tunnelProxy in interface ManagedClientAsyncConnectionjava.io.IOExceptionpublic void tunnelTarget(org.apache.http.params.HttpParams params)
throws java.io.IOException
tunnelTarget in interface ManagedClientAsyncConnectionjava.io.IOExceptionpublic void layerProtocol(org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
throws java.io.IOException
layerProtocol in interface ManagedClientAsyncConnectionjava.io.IOExceptionpublic void releaseConnection()
releaseConnection in interface org.apache.http.conn.ConnectionReleaseTriggerpublic void abortConnection()
abortConnection in interface org.apache.http.conn.ConnectionReleaseTriggerpublic java.lang.String toString()
toString in class java.lang.Object