org.apache.http.impl.pool
Class BasicConnPool
java.lang.Object
org.apache.http.pool.AbstractConnPool<HttpHost,HttpClientConnection,BasicPoolEntry>
org.apache.http.impl.pool.BasicConnPool
- All Implemented Interfaces:
- ConnPool<HttpHost,BasicPoolEntry>, ConnPoolControl<HttpHost>
@ThreadSafe
public class BasicConnPool
- extends AbstractConnPool<HttpHost,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.
The following parameters can be used to customize the behavior of this
class:
- Since:
- 4.2
- See Also:
HttpHost
Methods inherited from class org.apache.http.pool.AbstractConnPool |
closeExpired, closeIdle, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getStats, getTotalStats, isShutdown, lease, lease, release, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, shutdown, toString |
BasicConnPool
public BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory)
BasicConnPool
public BasicConnPool(HttpParams params)
createEntry
protected BasicPoolEntry createEntry(HttpHost host,
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<HttpHost,HttpClientConnection,BasicPoolEntry>
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.