Class ConnPoolByRoute

java.lang.Object
org.apache.http.impl.conn.tsccm.AbstractConnPool
org.apache.http.impl.conn.tsccm.ConnPoolByRoute
All Implemented Interfaces:
RefQueueHandler

public class ConnPoolByRoute
extends AbstractConnPool
A connection pool that maintains connections by route. This class is derived from MultiThreadedHttpConnectionManager in HttpClient 3.x, see there for original authors. It implements the same algorithm for connection re-use and connection-per-host enforcement:
  • connections are re-used only for the exact same route
  • connection limits are enforced per route rather than per host
Note that access to the pool datastructures is synchronized via the poolLock in the base class, not via synchronized methods.
Author:
Roland Weber, Michael Becke, and others