Methods Summary |
---|
public int | getDefaultMax()
return this.defaultMax;
|
public int | getMaxForRoute(org.apache.http.conn.routing.HttpRoute route)
if (route == null) {
throw new IllegalArgumentException
("HTTP route may not be null.");
}
Integer max = this.maxPerHostMap.get(route);
if (max != null) {
return max.intValue();
} else {
return this.defaultMax;
}
|
public void | setDefaultMaxPerRoute(int max)
if (max < 1) {
throw new IllegalArgumentException
("The maximum must be greater than 0.");
}
this.defaultMax = max;
|
public void | setMaxForRoute(org.apache.http.conn.routing.HttpRoute route, int max)
if (route == null) {
throw new IllegalArgumentException
("HTTP route may not be null.");
}
if (max < 1) {
throw new IllegalArgumentException
("The maximum must be greater than 0.");
}
this.maxPerHostMap.put(route, Integer.valueOf(max));
|
public void | setMaxForRoutes(java.util.Map map)
if (map == null) {
return;
}
this.maxPerHostMap.clear();
this.maxPerHostMap.putAll(map);
|