Class RouteSegmentedConnPool<R, C extends ModalCloseable>

java.lang.Object
org.apache.hc.core5.pool.RouteSegmentedConnPool<R,C>
Type Parameters:
R - route key type
C - connection type (must be ModalCloseable)
All Implemented Interfaces:
Closeable, AutoCloseable, ModalCloseable, ConnPool<R,C>, ConnPoolControl<R>, ConnPoolStats<R>, ManagedConnPool<R,C>

@Contract(threading=SAFE_CONDITIONAL) @Experimental public final class RouteSegmentedConnPool<R, C extends ModalCloseable> extends Object implements ManagedConnPool<R,C>
Lock-free, route-segmented connection pool with tiny, conditional round-robin assistance.

Per-route state is kept in independent segments. Disposal of connections is offloaded to a bounded executor so slow closes do not block threads leasing on other routes. A minimal round-robin drainer is engaged only when there are many pending routes and there is global headroom; it never scans all routes.

Since:
5.4
See Also: