Package 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>
@Contract(threading=SAFE_CONDITIONAL) public class BasicConnPool extends AbstractConnPool<HttpHost,HttpClientConnection,BasicPoolEntry>
A very basicConnPool
implementation that represents a pool of blockingHttpClientConnection
connections identified by anHttpHost
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
-
-
Constructor Summary
Constructors Constructor Description BasicConnPool()
BasicConnPool(SocketConfig sconfig, ConnectionConfig cconfig)
BasicConnPool(HttpParams params)
Deprecated.BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory)
-
Method Summary
-
Methods inherited from class org.apache.http.pool.AbstractConnPool
closeExpired, closeIdle, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getRoutes, getStats, getTotalStats, getValidateAfterInactivity, isShutdown, lease, lease, release, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, setValidateAfterInactivity, shutdown, toString
-
-
-
-
Constructor Detail
-
BasicConnPool
public BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory)
-
BasicConnPool
@Deprecated public BasicConnPool(HttpParams params)
Deprecated.
-
BasicConnPool
public BasicConnPool(SocketConfig sconfig, ConnectionConfig cconfig)
- Since:
- 4.3
-
BasicConnPool
public BasicConnPool()
- Since:
- 4.3
-
-