@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.
The following parameters can be used to customize the behavior of this
class:
HttpHost| Constructor and Description |
|---|
BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory) |
BasicConnPool(HttpParams params) |
| 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.
|
closeExpired, closeIdle, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getStats, getTotalStats, isShutdown, lease, lease, release, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, shutdown, toStringpublic BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory)
public BasicConnPool(HttpParams params)
protected BasicPoolEntry createEntry(HttpHost host, HttpClientConnection conn)
AbstractConnPoolcreateEntry in class AbstractConnPool<HttpHost,HttpClientConnection,BasicPoolEntry>Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.