Android APIs
public final class

ConnManagerParams

extends Object
implements ConnManagerPNames
java.lang.Object
   ↳ org.apache.http.conn.params.ConnManagerParams

Class Overview

This class represents a collection of HTTP protocol parameters applicable to client-side connection managers.

Summary

Constants
int DEFAULT_MAX_TOTAL_CONNECTIONS The default maximum number of connections allowed overall
[Expand]
Inherited Constants
From interface org.apache.http.conn.params.ConnManagerPNames
Public Constructors
ConnManagerParams()
Public Methods
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)
Returns the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.
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)
Sets the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DEFAULT_MAX_TOTAL_CONNECTIONS

Added in API level 1

The default maximum number of connections allowed overall

Constant Value: 20 (0x00000014)

Public Constructors

public ConnManagerParams ()

Added in API level 1

Public Methods

public static ConnPerRoute getMaxConnectionsPerRoute (HttpParams params)

Added in API level 1

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.

public static int getMaxTotalConnections (HttpParams params)

Added in API level 1

Gets the maximum number of connections allowed.

Parameters
params HTTP parameters
Returns
  • The maximum number of connections allowed.

public static long getTimeout (HttpParams params)

Added in API level 1

Returns the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.

Returns
  • timeout in milliseconds.

public static void setMaxConnectionsPerRoute (HttpParams params, ConnPerRoute connPerRoute)

Added in API level 1

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

Parameters
params HTTP parameters
connPerRoute lookup interface for maximum number of connections allowed per route

public static void setMaxTotalConnections (HttpParams params, int maxTotalConnections)

Added in API level 1

Sets the maximum number of connections allowed.

Parameters
params HTTP parameters
maxTotalConnections The maximum number of connections allowed.

public static void setTimeout (HttpParams params, long timeout)

Added in API level 1

Sets the timeout in milliseconds used when retrieving a ManagedClientConnection from the ClientConnectionManager.

Parameters
timeout the timeout in milliseconds