Example usage for org.apache.http.conn.params ConnManagerParams getMaxConnectionsPerRoute

List of usage examples for org.apache.http.conn.params ConnManagerParams getMaxConnectionsPerRoute

Introduction

In this page you can find the example usage for org.apache.http.conn.params ConnManagerParams getMaxConnectionsPerRoute.

Prototype

public static ConnPerRoute getMaxConnectionsPerRoute(final HttpParams params) 

Source Link

Document

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

Usage

From source file:org.apache.http.impl.conn.tsccm.ConnPoolByRoute.java

/**
 * Creates a new connection pool, managed by route.
 *
 * @deprecated (4.1)  use {@link ConnPoolByRoute#ConnPoolByRoute(ClientConnectionOperator, ConnPerRoute, int)}
 *//*from  w w  w  .  ja  va  2  s . c o  m*/
@Deprecated
public ConnPoolByRoute(final ClientConnectionOperator operator, final HttpParams params) {
    this(operator, ConnManagerParams.getMaxConnectionsPerRoute(params),
            ConnManagerParams.getMaxTotalConnections(params));
}