Package org.apache.http.conn.params
Class ConnPerRouteBean
- java.lang.Object
-
- org.apache.http.conn.params.ConnPerRouteBean
-
- All Implemented Interfaces:
ConnPerRoute
@Deprecated @Contract(threading=SAFE) public final class ConnPerRouteBean extends java.lang.Object implements ConnPerRoute
Deprecated.(4.2) useConnPoolControl
This class maintains a map of HTTP routes to maximum number of connections allowed for those routes. This class can be used by poolingconnection managers
for a fine-grained control of connections on a per route basis.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_CONNECTIONS_PER_ROUTE
Deprecated.The default maximum number of connections allowed per host
-
Constructor Summary
Constructors Constructor Description ConnPerRouteBean()
Deprecated.ConnPerRouteBean(int defaultMax)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getDefaultMax()
Deprecated.int
getDefaultMaxPerRoute()
Deprecated.int
getMaxForRoute(HttpRoute route)
Deprecated.void
setDefaultMaxPerRoute(int max)
Deprecated.void
setMaxForRoute(HttpRoute route, int max)
Deprecated.void
setMaxForRoutes(java.util.Map<HttpRoute,java.lang.Integer> map)
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Field Detail
-
DEFAULT_MAX_CONNECTIONS_PER_ROUTE
public static final int DEFAULT_MAX_CONNECTIONS_PER_ROUTE
Deprecated.The default maximum number of connections allowed per host- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultMax
public int getDefaultMax()
Deprecated.
-
getDefaultMaxPerRoute
public int getDefaultMaxPerRoute()
Deprecated.- Since:
- 4.1
-
setDefaultMaxPerRoute
public void setDefaultMaxPerRoute(int max)
Deprecated.
-
setMaxForRoute
public void setMaxForRoute(HttpRoute route, int max)
Deprecated.
-
getMaxForRoute
public int getMaxForRoute(HttpRoute route)
Deprecated.- Specified by:
getMaxForRoute
in interfaceConnPerRoute
-
setMaxForRoutes
public void setMaxForRoutes(java.util.Map<HttpRoute,java.lang.Integer> map)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-