public final class

ConnPerRouteBean

extends Object
implements ConnPerRoute
java.lang.Object
   ↳ org.apache.http.conn.params.ConnPerRouteBean

Class Overview

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.

Summary

Constants
int DEFAULT_MAX_CONNECTIONS_PER_ROUTE The default maximum number of connections allowed per host
Public Constructors
ConnPerRouteBean(int defaultMax)
ConnPerRouteBean()
Public Methods
int getDefaultMax()
int getMaxForRoute(HttpRoute route)
void setDefaultMaxPerRoute(int max)
void setMaxForRoute(HttpRoute route, int max)
void setMaxForRoutes(Map<HttpRouteInteger> map)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.conn.params.ConnPerRoute

Constants

public static final int DEFAULT_MAX_CONNECTIONS_PER_ROUTE

The default maximum number of connections allowed per host

Constant Value: 2 (0x00000002)

Public Constructors

public ConnPerRouteBean (int defaultMax)

public ConnPerRouteBean ()

Public Methods

public int getDefaultMax ()

public int getMaxForRoute (HttpRoute route)

public void setDefaultMaxPerRoute (int max)

public void setMaxForRoute (HttpRoute route, int max)

public void setMaxForRoutes (Map<HttpRouteInteger> map)