@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, toString
public BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory)
public BasicConnPool(HttpParams params)
protected BasicPoolEntry createEntry(HttpHost host, HttpClientConnection conn)
AbstractConnPool
createEntry
in class AbstractConnPool<HttpHost,HttpClientConnection,BasicPoolEntry>
Copyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.