org.apache.http.impl.pool
Class BasicConnPool
java.lang.Object
org.apache.http.pool.AbstractConnPool<org.apache.http.HttpHost,org.apache.http.HttpClientConnection,BasicPoolEntry>
org.apache.http.impl.pool.BasicConnPool
- All Implemented Interfaces:
- ConnPool<org.apache.http.HttpHost,BasicPoolEntry>, ConnPoolControl<org.apache.http.HttpHost>
@ThreadSafe
public class BasicConnPool
- extends AbstractConnPool<org.apache.http.HttpHost,org.apache.http.HttpClientConnection,BasicPoolEntry>
A very basic ConnPool implementation that
represents a pool of blocking HttpClientConnection connections
identified by an HttpHost instance. Please note this pool
implementation does not support complex routes via a proxy cannot
differentiate between direct and proxied connections.
- Since:
- 4.2
- See Also:
HttpHost
|
Method Summary |
protected BasicPoolEntry |
createEntry(org.apache.http.HttpHost host,
org.apache.http.HttpClientConnection conn)
Creates a new entry for the given connection with the given route. |
| Methods inherited from class org.apache.http.pool.AbstractConnPool |
closeExpired, closeIdle, enumAvailable, enumLeased, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getStats, getTotalStats, isShutdown, lease, lease, onLease, onRelease, release, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, shutdown, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicConnPool
public BasicConnPool(ConnFactory<org.apache.http.HttpHost,org.apache.http.HttpClientConnection> connFactory)
BasicConnPool
@Deprecated
public BasicConnPool(org.apache.http.params.HttpParams params)
- Deprecated. (4.3) use
BasicConnPool(SocketConfig, ConnectionConfig)
BasicConnPool
public BasicConnPool(SocketConfig sconfig,
ConnectionConfig cconfig)
- Since:
- 4.3
BasicConnPool
public BasicConnPool()
- Since:
- 4.3
createEntry
protected BasicPoolEntry createEntry(org.apache.http.HttpHost host,
org.apache.http.HttpClientConnection conn)
- Description copied from class:
AbstractConnPool
- Creates a new entry for the given connection with the given route.
- Specified by:
createEntry in class AbstractConnPool<org.apache.http.HttpHost,org.apache.http.HttpClientConnection,BasicPoolEntry>