|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.conn.params.ConnManagerParams
@Immutable public final class ConnManagerParams
An adaptor for manipulating HTTP connection management
parameters in HttpParams
.
ConnManagerPNames
Field Summary | |
---|---|
static int |
DEFAULT_MAX_TOTAL_CONNECTIONS
The default maximum number of connections allowed overall |
Fields inherited from interface org.apache.http.conn.params.ConnManagerPNames |
---|
MAX_CONNECTIONS_PER_ROUTE, MAX_TOTAL_CONNECTIONS, TIMEOUT |
Constructor Summary | |
---|---|
ConnManagerParams()
|
Method Summary | |
---|---|
static ConnPerRoute |
getMaxConnectionsPerRoute(HttpParams params)
Returns lookup interface for maximum number of connections allowed per route. |
static int |
getMaxTotalConnections(HttpParams params)
Gets the maximum number of connections allowed. |
static long |
getTimeout(HttpParams params)
Returns the timeout in milliseconds used when retrieving a ManagedClientConnection from the
ClientConnectionManager . |
static void |
setMaxConnectionsPerRoute(HttpParams params,
ConnPerRoute connPerRoute)
Sets lookup interface for maximum number of connections allowed per route. |
static void |
setMaxTotalConnections(HttpParams params,
int maxTotalConnections)
Sets the maximum number of connections allowed. |
static void |
setTimeout(HttpParams params,
long timeout)
Sets the timeout in milliseconds used when retrieving a ManagedClientConnection from the
ClientConnectionManager . |
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_TOTAL_CONNECTIONS
Constructor Detail |
---|
public ConnManagerParams()
Method Detail |
---|
public static long getTimeout(HttpParams params)
ManagedClientConnection
from the
ClientConnectionManager
.
public static void setTimeout(HttpParams params, long timeout)
ManagedClientConnection
from the
ClientConnectionManager
.
timeout
- the timeout in millisecondspublic static void setMaxConnectionsPerRoute(HttpParams params, ConnPerRoute connPerRoute)
params
- HTTP parametersconnPerRoute
- lookup interface for maximum number of connections allowed
per routeConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE
public static ConnPerRoute getMaxConnectionsPerRoute(HttpParams params)
params
- HTTP parameters
ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE
public static void setMaxTotalConnections(HttpParams params, int maxTotalConnections)
params
- HTTP parametersmaxTotalConnections
- The maximum number of connections allowed.ConnManagerPNames.MAX_TOTAL_CONNECTIONS
public static int getMaxTotalConnections(HttpParams params)
params
- HTTP parameters
ConnManagerPNames.MAX_TOTAL_CONNECTIONS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |