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 Object
implements ConnManagerPNames
Deprecated.
(4.1) use configuration methods of the specific connection manager implementation.
An adaptor for manipulating HTTP connection management
parameters in
HttpParams.- Since:
- 4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ConnPerRouteDeprecated.The default maximum number of connections allowed per hoststatic final intDeprecated.The default maximum number of connections allowed overallFields inherited from interface org.apache.http.conn.params.ConnManagerPNames
MAX_CONNECTIONS_PER_ROUTE, MAX_TOTAL_CONNECTIONS, TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnPerRoutegetMaxConnectionsPerRoute(org.apache.http.params.HttpParams params) Deprecated.Returns lookup interface for maximum number of connections allowed per route.static intgetMaxTotalConnections(org.apache.http.params.HttpParams params) Deprecated.Gets the maximum number of connections allowed.static longgetTimeout(org.apache.http.params.HttpParams params) Deprecated.(4.1) useHttpConnectionParams.getConnectionTimeout(HttpParams)static voidsetMaxConnectionsPerRoute(org.apache.http.params.HttpParams params, ConnPerRoute connPerRoute) Deprecated.Sets lookup interface for maximum number of connections allowed per route.static voidsetMaxTotalConnections(org.apache.http.params.HttpParams params, int maxTotalConnections) Deprecated.Sets the maximum number of connections allowed.static voidsetTimeout(org.apache.http.params.HttpParams params, long timeout) Deprecated.(4.1) useHttpConnectionParams.setConnectionTimeout(HttpParams, int)
-
Field Details
-
DEFAULT_MAX_TOTAL_CONNECTIONS
public static final int DEFAULT_MAX_TOTAL_CONNECTIONSDeprecated.The default maximum number of connections allowed overall- See Also:
-
DEFAULT_CONN_PER_ROUTE
Deprecated.The default maximum number of connections allowed per host
-
-
Constructor Details
-
ConnManagerParams
public ConnManagerParams()Deprecated.
-
-
Method Details
-
getTimeout
Deprecated.(4.1) useHttpConnectionParams.getConnectionTimeout(HttpParams)Returns the timeout in milliseconds used when retrieving aManagedClientConnectionfrom theClientConnectionManager.- Returns:
- timeout in milliseconds.
-
setTimeout
Deprecated.(4.1) useHttpConnectionParams.setConnectionTimeout(HttpParams, int)Sets the timeout in milliseconds used when retrieving aManagedClientConnectionfrom theClientConnectionManager.- Parameters:
timeout- the timeout in milliseconds
-
setMaxConnectionsPerRoute
public static void setMaxConnectionsPerRoute(org.apache.http.params.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
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(org.apache.http.params.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(org.apache.http.params.HttpParams params) Deprecated.Gets the maximum number of connections allowed.- Parameters:
params- HTTP parameters- Returns:
- The maximum number of connections allowed.
-