• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
ConnManagerParams Class Reference

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

Inheritance diagram for ConnManagerParams:
ConnManagerPNames

Description

Author
Oleg Kalnichevski
Michael Becke
Version
Revision
658785
Since
4.0
See also
ConnManagerPNames

Notice

The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.

/*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

Static Public Member Functions

static long getTimeout (final HttpParams params)
 Returns the timeout in milliseconds used when retrieving a com.good.gd.apache.http.conn.ManagedClientConnection from the com.good.gd.apache.http.conn.ClientConnectionManager. More...
 
static void setTimeout (final HttpParams params, long timeout)
 Sets the timeout in milliseconds used when retrieving a com.good.gd.apache.http.conn.ManagedClientConnection from the com.good.gd.apache.http.conn.ClientConnectionManager. More...
 
static void setMaxConnectionsPerRoute (final HttpParams params, final ConnPerRoute connPerRoute)
 Sets lookup interface for maximum number of connections allowed per route. More...
 
static ConnPerRoute getMaxConnectionsPerRoute (final HttpParams params)
 Returns lookup interface for maximum number of connections allowed per route. More...
 
static void setMaxTotalConnections (final HttpParams params, int maxTotalConnections)
 Sets the maximum number of connections allowed. More...
 
static int getMaxTotalConnections (final HttpParams params)
 Gets the maximum number of connections allowed. More...
 

Static Public Attributes

static final int DEFAULT_MAX_TOTAL_CONNECTIONS = 20
 The default maximum number of connections allowed overall.
 
- Static Public Attributes inherited from ConnManagerPNames
static final String TIMEOUT = "http.conn-manager.timeout"
 Defines the timeout in milliseconds used when retrieving an instance of com.good.gd.apache.http.conn.ManagedClientConnection from the com.good.gd.apache.http.conn.ClientConnectionManager. More...
 
static final String MAX_CONNECTIONS_PER_ROUTE = "http.conn-manager.max-per-route"
 Defines the maximum number of connections per route. More...
 
static final String MAX_TOTAL_CONNECTIONS = "http.conn-manager.max-total"
 Defines the maximum number of connections in total. More...
 

Member Function Documentation

◆ getTimeout()

static long getTimeout ( final HttpParams  params)
static
Parameters
paramsHTTP parameters
Returns
timeout in milliseconds.

◆ setTimeout()

static void setTimeout ( final HttpParams  params,
long  timeout 
)
static
Parameters
paramsHTTP parameters
timeoutthe timeout in milliseconds

◆ setMaxConnectionsPerRoute()

static void setMaxConnectionsPerRoute ( final HttpParams  params,
final ConnPerRoute  connPerRoute 
)
static
Parameters
paramsHTTP parameters
connPerRoutelookup interface for maximum number of connections allowed per route
See also
ConnManagerPNames::MAX_CONNECTIONS_PER_ROUTE

◆ getMaxConnectionsPerRoute()

static ConnPerRoute getMaxConnectionsPerRoute ( final HttpParams  params)
static
Parameters
paramsHTTP parameters
Returns
lookup interface for maximum number of connections allowed per route.
See also
ConnManagerPNames::MAX_CONNECTIONS_PER_ROUTE

◆ setMaxTotalConnections()

static void setMaxTotalConnections ( final HttpParams  params,
int  maxTotalConnections 
)
static
Parameters
paramsHTTP parameters
maxTotalConnectionsThe maximum number of connections allowed.
See also
ConnManagerPNames::MAX_TOTAL_CONNECTIONS

◆ getMaxTotalConnections()

static int getMaxTotalConnections ( final HttpParams  params)
static
Parameters
paramsHTTP parameters
Returns
The maximum number of connections allowed.
See also
ConnManagerPNames::MAX_TOTAL_CONNECTIONS