@Deprecated @Immutable public final class ConnManagerParams extends Object implements ConnManagerPNames
HttpParams
.ConnManagerPNames
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_TOTAL_CONNECTIONS
Deprecated.
The default maximum number of connections allowed overall
|
MAX_CONNECTIONS_PER_ROUTE, MAX_TOTAL_CONNECTIONS, TIMEOUT
Constructor and Description |
---|
ConnManagerParams()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ConnPerRoute |
getMaxConnectionsPerRoute(HttpParams params)
Deprecated.
Returns lookup interface for maximum number of connections allowed per route.
|
static int |
getMaxTotalConnections(HttpParams params)
Deprecated.
Gets the maximum number of connections allowed.
|
static long |
getTimeout(HttpParams params)
Deprecated.
|
static void |
setMaxConnectionsPerRoute(HttpParams params,
ConnPerRoute connPerRoute)
Deprecated.
Sets lookup interface for maximum number of connections allowed per route.
|
static void |
setMaxTotalConnections(HttpParams params,
int maxTotalConnections)
Deprecated.
Sets the maximum number of connections allowed.
|
static void |
setTimeout(HttpParams params,
long timeout)
Deprecated.
|
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS
@Deprecated public static long getTimeout(HttpParams params)
HttpConnectionParams.getConnectionTimeout(HttpParams)
ManagedClientConnection
from the
ClientConnectionManager
.@Deprecated 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 parametersCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.