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 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.- Since:
- 4.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicConnPool(SocketConfig sconfig, ConnectionConfig cconfig) BasicConnPool(HttpParams params) Deprecated.BasicConnPool(ConnFactory<HttpHost, HttpClientConnection> connFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicPoolEntrycreateEntry(HttpHost host, HttpClientConnection conn) Creates a new entry for the given connection with the given route.protected booleanvalidate(BasicPoolEntry entry) Methods inherited from class org.apache.http.pool.AbstractConnPool
closeExpired, closeIdle, enumAvailable, enumLeased, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getRoutes, getStats, getTotalStats, getValidateAfterInactivity, isShutdown, lease, lease, onLease, onRelease, onReuse, release, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, setValidateAfterInactivity, shutdown, toString
-
Constructor Details
-
BasicConnPool
-
BasicConnPool
Deprecated. -
BasicConnPool
- Since:
- 4.3
-
BasicConnPool
public BasicConnPool()- Since:
- 4.3
-
-
Method Details
-
createEntry
Description copied from class:AbstractConnPoolCreates a new entry for the given connection with the given route.- Specified by:
createEntryin classAbstractConnPool<HttpHost,HttpClientConnection, BasicPoolEntry>
-
validate
- Overrides:
validatein classAbstractConnPool<HttpHost,HttpClientConnection, BasicPoolEntry>
-
BasicConnPool(SocketConfig, ConnectionConfig)