Top Description Fields Constructors Methods
org.apache.http.impl.pool

public Class BasicConnPool

extends AbstractConnPool<HttpHost, HttpClientConnection, BasicPoolEntry>
Class Inheritance
Annotations
@SuppressWarnings:deprecation
@Contract
threading:SAFE_CONDITIONAL
Imports
java.util.concurrent.atomic.AtomicLong, org.apache.http.HttpClientConnection, .HttpHost, org.apache.http.annotation.ThreadingBehavior, .Contract, org.apache.http.config.ConnectionConfig, .SocketConfig, org.apache.http.params.HttpParams, org.apache.http.pool.AbstractConnPool, .ConnFactory

A very basic org.apache.http.pool.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
HttpHost

Field Summary

Modifier and TypeField and Description
private static final AtomicLong

Constructor Summary

AccessConstructor and Description
public
public
public
BasicConnPool(final SocketConfig sconfig, final ConnectionConfig cconfig)

public

Method Summary

Modifier and TypeMethod and Description
protected BasicPoolEntry
createEntry(final HttpHost host, final HttpClientConnection conn)

Implements abstract org.apache.http.pool.AbstractConnPool.createEntry.

Creates a new entry for the given connection with the given route.
protected boolean
Inherited from org.apache.http.pool.AbstractConnPool:
closeExpiredcloseIdleenumAvailableenumLeasedgetDefaultMaxPerRoutegetMaxPerRoutegetMaxTotalgetRoutesgetStatsgetTotalStatsgetValidateAfterInactivityisShutdownleaseleaseonLeaseonReleaseonReusereleasesetDefaultMaxPerRoutesetMaxPerRoutesetMaxTotalsetValidateAfterInactivityshutdowntoString

Field Detail

COUNTERback to summary
private static final AtomicLong COUNTER

Constructor Detail

BasicConnPoolback to summary
public BasicConnPool(final ConnFactory<HttpHost, HttpClientConnection> connFactory)
BasicConnPoolback to summary
public BasicConnPool(final HttpParams params)
Annotations
@Deprecated
BasicConnPoolback to summary
public BasicConnPool(final SocketConfig sconfig, final ConnectionConfig cconfig)
Since
4.3
BasicConnPoolback to summary
public BasicConnPool()
Since
4.3

Method Detail

createEntryback to summary
protected BasicPoolEntry createEntry(final HttpHost host, final HttpClientConnection conn)

Implements abstract org.apache.http.pool.AbstractConnPool.createEntry.

Doc from org.apache.http.pool.AbstractConnPool.createEntry.

Creates a new entry for the given connection with the given route.

Annotations
@Override
validateback to summary
protected boolean validate(final BasicPoolEntry entry)

Overrides org.apache.http.pool.AbstractConnPool.validate.

Annotations
@Override