|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.conn.params.HttpConnectionManagerParams
public final class HttpConnectionManagerParams
This class represents a collection of HTTP protocol parameters applicable
to client-side
connection managers
.
ConnManagerPNames
Field Summary | |
---|---|
static int |
DEFAULT_MAX_HOST_CONNECTIONS
The default maximum number of connections allowed per host |
static int |
DEFAULT_MAX_TOTAL_CONNECTIONS
The default maximum number of connections allowed overall |
Constructor Summary | |
---|---|
HttpConnectionManagerParams()
|
Method Summary | |
---|---|
static int |
getDefaultMaxConnectionsPerHost(org.apache.http.params.HttpParams params)
Gets the default maximum number of connections allowed for a given host config. |
static int |
getMaxConnectionsPerHost(org.apache.http.params.HttpParams params,
HttpRoute route)
Gets the maximum number of connections allowed for a specific route. |
static int |
getMaxTotalConnections(org.apache.http.params.HttpParams params)
Gets the maximum number of connections allowed. |
static void |
setDefaultMaxConnectionsPerHost(org.apache.http.params.HttpParams params,
int max)
Sets the default maximum number of connections allowed for routes. |
static void |
setMaxConnectionsPerHost(org.apache.http.params.HttpParams params,
HttpRoute route,
int max)
Sets the maximum number of connections to be used for a given route. |
static void |
setMaxTotalConnections(org.apache.http.params.HttpParams params,
int maxTotalConnections)
Sets the maximum number of connections allowed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_HOST_CONNECTIONS
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS
Constructor Detail |
---|
public HttpConnectionManagerParams()
Method Detail |
---|
public static void setDefaultMaxConnectionsPerHost(org.apache.http.params.HttpParams params, int max)
max
- The default maximum.ConnManagerPNames.MAX_HOST_CONNECTIONS
public static void setMaxConnectionsPerHost(org.apache.http.params.HttpParams params, HttpRoute route, int max)
route
- the route to set the maximum formax
- the maximum number of connections,
must be greater than 0ConnManagerPNames.MAX_HOST_CONNECTIONS
public static int getDefaultMaxConnectionsPerHost(org.apache.http.params.HttpParams params)
ConnManagerPNames.MAX_HOST_CONNECTIONS
public static int getMaxConnectionsPerHost(org.apache.http.params.HttpParams params, HttpRoute route)
route
- the route for which to get the maximum connections
ConnManagerPNames.MAX_HOST_CONNECTIONS
public static void setMaxTotalConnections(org.apache.http.params.HttpParams params, int maxTotalConnections)
maxTotalConnections
- The maximum number of connections allowed.ConnManagerPNames.MAX_TOTAL_CONNECTIONS
public static int getMaxTotalConnections(org.apache.http.params.HttpParams params)
ConnManagerPNames.MAX_TOTAL_CONNECTIONS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |