Android
org.apache.http.conn.params
public final class

org.apache.http.conn.params.ConnManagerParams

java.lang.Object
org.apache.http.conn.params.ConnManagerParams ConnManagerPNames

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

Summary

Constants

      Value  
int  DEFAULT_MAX_TOTAL_CONNECTIONS  The default maximum number of connections allowed overall   20  0x00000014 
Constants inherited 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.
Methods inherited from class java.lang.Object

Details

Constants

public static final int DEFAULT_MAX_TOTAL_CONNECTIONS

The default maximum number of connections allowed overall
Constant Value: 20 (0x00000014)

Public Constructors

public ConnManagerParams()

Public Methods

public static ConnPerRoute getMaxConnectionsPerRoute(HttpParams params)

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)

Gets the maximum number of connections allowed.

Parameters

params HTTP parameters

Returns

  • The maximum number of connections allowed.

public static long getTimeout(HttpParams params)

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)

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)

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)

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

Parameters

timeout the timeout in milliseconds
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56