Build 1.0_r1(from source)

org.apache.http.conn.params
Class ConnPerRouteBean

java.lang.Object
  extended by org.apache.http.conn.params.ConnPerRouteBean
All Implemented Interfaces:
ConnPerRoute

public final class ConnPerRouteBean
extends Object
implements ConnPerRoute

This class maintains a map of HTTP routes to maximum number of connections allowed for those routes. This class can be used by pooling connection managers for a fine-grained control of connections on a per route basis.

Since:
4.0

Field Summary
static int DEFAULT_MAX_CONNECTIONS_PER_ROUTE
          The default maximum number of connections allowed per host
 
Constructor Summary
ConnPerRouteBean()
           
ConnPerRouteBean(int defaultMax)
           
 
Method Summary
 int getDefaultMax()
           
 int getMaxForRoute(HttpRoute route)
           
 void setDefaultMaxPerRoute(int max)
           
 void setMaxForRoute(HttpRoute route, int max)
           
 void setMaxForRoutes(Map<HttpRoute,Integer> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_CONNECTIONS_PER_ROUTE

public static final int DEFAULT_MAX_CONNECTIONS_PER_ROUTE
The default maximum number of connections allowed per host

See Also:
Constant Field Values
Constructor Detail

ConnPerRouteBean

public ConnPerRouteBean(int defaultMax)

ConnPerRouteBean

public ConnPerRouteBean()
Method Detail

getDefaultMax

public int getDefaultMax()

setDefaultMaxPerRoute

public void setDefaultMaxPerRoute(int max)

setMaxForRoute

public void setMaxForRoute(HttpRoute route,
                           int max)

getMaxForRoute

public int getMaxForRoute(HttpRoute route)
Specified by:
getMaxForRoute in interface ConnPerRoute

setMaxForRoutes

public void setMaxForRoutes(Map<HttpRoute,Integer> map)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature