to top
Android APIs
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

Since: API Level 1

The default maximum number of connections allowed per host

Constant Value: 2 (0x00000002)

Public Constructors

public ConnPerRouteBean (int defaultMax)

Since: API Level 1

public ConnPerRouteBean ()

Since: API Level 1

Public Methods

public int getDefaultMax ()

Since: API Level 1

public int getMaxForRoute (HttpRoute route)

Since: API Level 1

public void setDefaultMaxPerRoute (int max)

Since: API Level 1

public void setMaxForRoute (HttpRoute route, int max)

Since: API Level 1

public void setMaxForRoutes (Map<HttpRouteInteger> map)

Since: API Level 1