Top Description Fields Constructors Methods
org.apache.http.conn.params

public final Class ConnManagerParams

extends Object
implements ConnManagerPNames
Class Inheritance
All Implemented Interfaces
org.apache.http.conn.params.ConnManagerPNames
Annotations
@Deprecated
@Contract
threading:IMMUTABLE
Imports
org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.conn.routing.HttpRoute, org.apache.http.params.HttpParams, org.apache.http.util.Args

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
ConnManagerPNames

Field Summary

Modifier and TypeField and Description
private static final ConnPerRoute
DEFAULT_CONN_PER_ROUTE

The default maximum number of connections allowed per host

public static final int
DEFAULT_MAX_TOTAL_CONNECTIONS

The default maximum number of connections allowed overall

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ConnPerRoute

Returns:

lookup interface for maximum number of connections allowed per route.
getMaxConnectionsPerRoute
(final HttpParams
HTTP parameters
params
)

Deprecated as a consequence of HttpParams and ConnPerRoute being deprecated.
Returns lookup interface for maximum number of connections allowed per route.
public static int

Returns:

The maximum number of connections allowed.
getMaxTotalConnections
(final HttpParams
HTTP parameters
params
)

Deprecated as a consequence of HttpParams being deprecated.
Gets the maximum number of connections allowed.
public static long

Returns:

timeout in milliseconds.
getTimeout
(final HttpParams params)

Returns the timeout in milliseconds used when retrieving a org.apache.http.conn.ManagedClientConnection from the org.apache.http.conn.ClientConnectionManager.
public static void
setMaxConnectionsPerRoute(final HttpParams
HTTP parameters
params
,
final ConnPerRoute
lookup interface for maximum number of connections allowed per route
connPerRoute
)

Deprecated as a consequence of HttpParams and ConnPerRoute being deprecated.
Sets lookup interface for maximum number of connections allowed per route.
public static void
setMaxTotalConnections(final HttpParams
HTTP parameters
params
,
final int
The maximum number of connections allowed.
maxTotalConnections
)

Deprecated as a consequence of HttpParams being deprecated.
Sets the maximum number of connections allowed.
public static void
setTimeout(final HttpParams params, final long
the timeout in milliseconds
timeout
)

Sets the timeout in milliseconds used when retrieving a org.apache.http.conn.ManagedClientConnection from the org.apache.http.conn.ClientConnectionManager.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_CONN_PER_ROUTEback to summary
private static final ConnPerRoute DEFAULT_CONN_PER_ROUTE

Deprecated

as a consequence of ConnPerRoute being deprecated. See corresponding docs for further information.

The default maximum number of connections allowed per host

DEFAULT_MAX_TOTAL_CONNECTIONSback to summary
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS

The default maximum number of connections allowed overall

Constructor Detail

ConnManagerParamsback to summary
public ConnManagerParams()

Method Detail

getMaxConnectionsPerRouteback to summary
public static ConnPerRoute getMaxConnectionsPerRoute(final HttpParams params)

Deprecated

as a consequence of HttpParams and ConnPerRoute being deprecated. See corresponding docs for further information.

Returns lookup interface for maximum number of connections allowed per route.

Parameters
params:HttpParams

HTTP parameters

Returns:ConnPerRoute

lookup interface for maximum number of connections allowed per route.

getMaxTotalConnectionsback to summary
public static int getMaxTotalConnections(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Gets the maximum number of connections allowed.

Parameters
params:HttpParams

HTTP parameters

Returns:int

The maximum number of connections allowed.

getTimeoutback to summary
public static long getTimeout(final HttpParams params)

Returns the timeout in milliseconds used when retrieving a org.apache.http.conn.ManagedClientConnection from the org.apache.http.conn.ClientConnectionManager.

Returns:long

timeout in milliseconds.

Annotations
@Deprecated
setMaxConnectionsPerRouteback to summary
public static void setMaxConnectionsPerRoute(final HttpParams params, final ConnPerRoute connPerRoute)

Deprecated

as a consequence of HttpParams and ConnPerRoute being deprecated. See corresponding docs for further information.

Sets lookup interface for maximum number of connections allowed per route.

Parameters
params:HttpParams

HTTP parameters

connPerRoute:ConnPerRoute

lookup interface for maximum number of connections allowed per route

setMaxTotalConnectionsback to summary
public static void setMaxTotalConnections(final HttpParams params, final int maxTotalConnections)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Sets the maximum number of connections allowed.

Parameters
params:HttpParams

HTTP parameters

maxTotalConnections:int

The maximum number of connections allowed.

setTimeoutback to summary
public static void setTimeout(final HttpParams params, final long timeout)

Sets the timeout in milliseconds used when retrieving a org.apache.http.conn.ManagedClientConnection from the org.apache.http.conn.ClientConnectionManager.

Parameters
timeout:long

the timeout in milliseconds

Annotations
@Deprecated