@Deprecated @Immutable public final class ConnManagerParams extends java.lang.Object implements ConnManagerPNames
HttpParams.ConnManagerPNames| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_MAX_TOTAL_CONNECTIONS
已过时。
The default maximum number of connections allowed overall
|
MAX_CONNECTIONS_PER_ROUTE, MAX_TOTAL_CONNECTIONS, TIMEOUT| 构造器和说明 |
|---|
ConnManagerParams()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
|
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)
已过时。
|
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS
public static long getTimeout(HttpParams params)
HttpConnectionParams.getConnectionTimeout(HttpParams)ManagedClientConnection from the
ClientConnectionManager.public static void setTimeout(HttpParams params, long timeout)
HttpConnectionParams.setConnectionTimeout(HttpParams, int)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 routepublic static ConnPerRoute getMaxConnectionsPerRoute(HttpParams params)
params - HTTP parameterspublic static void setMaxTotalConnections(HttpParams params, int maxTotalConnections)
params - HTTP parametersmaxTotalConnections - The maximum number of connections allowed.public static int getMaxTotalConnections(HttpParams params)
params - HTTP parameters