org.apache.http.impl.conn.tsccm
Class BasicPooledConnAdapter
java.lang.Object
org.apache.http.impl.conn.AbstractClientConnAdapter
org.apache.http.impl.conn.AbstractPooledConnAdapter
org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter
- All Implemented Interfaces:
- ConnectionReleaseTrigger, ManagedClientConnection, HttpClientConnection, HttpConnection, HttpInetConnection
public class BasicPooledConnAdapter
- extends AbstractPooledConnAdapter
A connection wrapper and callback handler.
All connections given out by the manager are wrappers which
can be detach
ed to prevent further use on release.
- Since:
- 4.0
Methods inherited from class org.apache.http.impl.conn.AbstractClientConnAdapter |
abortConnection, assertNotAborted, assertValid, flush, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSocketTimeout, getSSLSession, getWrappedConnection, isMarkedReusable, isOpen, isResponseAvailable, isSecure, isStale, markReusable, receiveResponseEntity, receiveResponseHeader, releaseConnection, sendRequestEntity, sendRequestHeader, setIdleDuration, setSocketTimeout, unmarkReusable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPooledConnAdapter
protected BasicPooledConnAdapter(ThreadSafeClientConnManager tsccm,
AbstractPoolEntry entry)
- Creates a new adapter.
- Parameters:
tsccm
- the connection managerentry
- the pool entry for the connection being wrapped
getManager
protected ClientConnectionManager getManager()
- Overrides:
getManager
in class AbstractClientConnAdapter
getPoolEntry
protected AbstractPoolEntry getPoolEntry()
- Obtains the pool entry.
- Returns:
- the pool entry, or
null
if detached
detach
protected void detach()
- Description copied from class:
AbstractPooledConnAdapter
- Detaches this adapter from the wrapped connection.
This adapter becomes useless.
- Overrides:
detach
in class AbstractPooledConnAdapter
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.