Package org.apache.http.conn.params
Class ConnManagerParams
- java.lang.Object
-
- org.apache.http.conn.params.ConnManagerParams
-
- All Implemented Interfaces:
ConnManagerPNames
@Deprecated @Contract(threading=IMMUTABLE) public final class ConnManagerParams extends java.lang.Object implements ConnManagerPNames
Deprecated.(4.1) use configuration methods of the specific connection manager implementation.An adaptor for manipulating HTTP connection management parameters inHttpParams
.- Since:
- 4.0
- See Also:
ConnManagerPNames
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_TOTAL_CONNECTIONS
Deprecated.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
Constructors Constructor Description ConnManagerParams()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
DEFAULT_MAX_TOTAL_CONNECTIONS
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS
Deprecated.The default maximum number of connections allowed overall- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimeout
@Deprecated public static long getTimeout(HttpParams params)
Deprecated.Returns the timeout in milliseconds used when retrieving aManagedClientConnection
from theClientConnectionManager
.- Returns:
- timeout in milliseconds.
-
setTimeout
@Deprecated public static void setTimeout(HttpParams params, long timeout)
Deprecated.Sets the timeout in milliseconds used when retrieving aManagedClientConnection
from theClientConnectionManager
.- Parameters:
timeout
- the timeout in milliseconds
-
setMaxConnectionsPerRoute
public static void setMaxConnectionsPerRoute(HttpParams params, ConnPerRoute connPerRoute)
Deprecated.Sets lookup interface for maximum number of connections allowed per route.- Parameters:
params
- HTTP parametersconnPerRoute
- lookup interface for maximum number of connections allowed per route
-
getMaxConnectionsPerRoute
public static ConnPerRoute getMaxConnectionsPerRoute(HttpParams params)
Deprecated.Returns lookup interface for maximum number of connections allowed per route.- Parameters:
params
- HTTP parameters- Returns:
- lookup interface for maximum number of connections allowed per route.
-
setMaxTotalConnections
public static void setMaxTotalConnections(HttpParams params, int maxTotalConnections)
Deprecated.Sets the maximum number of connections allowed.- Parameters:
params
- HTTP parametersmaxTotalConnections
- The maximum number of connections allowed.
-
getMaxTotalConnections
public static int getMaxTotalConnections(HttpParams params)
Deprecated.Gets the maximum number of connections allowed.- Parameters:
params
- HTTP parameters- Returns:
- The maximum number of connections allowed.
-
-