org.apache.http.conn.params.ConnManagerParams
This class represents a collection of HTTP protocol parameters applicable
to client-side
connection managers.
Summary
Constants
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
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.
Returns
- lookup interface for maximum number of connections allowed per route.
public
static
int
getMaxTotalConnections(HttpParams params)
Gets the maximum number of connections allowed.
Returns
- The maximum number of connections allowed.
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)