@ThreadSafe public class BasicConnPool extends AbstractConnPool<HttpHost,HttpClientConnection,BasicPoolEntry>
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.HttpHost
Constructor and Description |
---|
BasicConnPool() |
BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory) |
BasicConnPool(HttpParams params)
Deprecated.
|
BasicConnPool(SocketConfig sconfig,
ConnectionConfig cconfig) |
Modifier and Type | Method and Description |
---|---|
protected BasicPoolEntry |
createEntry(HttpHost host,
HttpClientConnection conn)
Creates a new entry for the given connection with the given route.
|
protected boolean |
validate(BasicPoolEntry entry) |
closeExpired, closeIdle, enumAvailable, enumLeased, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getRoutes, getStats, getTotalStats, getValidateAfterInactivity, isShutdown, lease, lease, onLease, onRelease, onReuse, release, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, setValidateAfterInactivity, shutdown, toString
public BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory)
@Deprecated public BasicConnPool(HttpParams params)
BasicConnPool(SocketConfig, ConnectionConfig)
public BasicConnPool(SocketConfig sconfig, ConnectionConfig cconfig)
public BasicConnPool()
protected BasicPoolEntry createEntry(HttpHost host, HttpClientConnection conn)
AbstractConnPool
createEntry
in class AbstractConnPool<HttpHost,HttpClientConnection,BasicPoolEntry>
protected boolean validate(BasicPoolEntry entry)
validate
in class AbstractConnPool<HttpHost,HttpClientConnection,BasicPoolEntry>