@Deprecated @Contract(threading=IMMUTABLE) public final class ConnManagerParams extends Object implements ConnManagerPNames
HttpParams中操作HTTP连接管理参数的适配器 。
ConnManagerPNames
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_TOTAL_CONNECTIONS
已过时。
整体允许的默认最大连接数
|
MAX_CONNECTIONS_PER_ROUTE, MAX_TOTAL_CONNECTIONS, TIMEOUT| Constructor and Description |
|---|
ConnManagerParams()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
static ConnPerRoute |
getMaxConnectionsPerRoute(HttpParams params)
已过时。
返回每个路由允许的最大连接数的查找接口。
|
static int |
getMaxTotalConnections(HttpParams params)
已过时。
获取允许的最大连接数。
|
static long |
getTimeout(HttpParams params)
|
static void |
setMaxConnectionsPerRoute(HttpParams params, ConnPerRoute connPerRoute)
已过时。
设置每个路由允许的最大连接数量的查找接口。
|
static void |
setMaxTotalConnections(HttpParams params, int maxTotalConnections)
已过时。
设置允许的最大连接数。
|
static void |
setTimeout(HttpParams params, long timeout)
|
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS
@Deprecated public static long getTimeout(HttpParams params)
ClientConnectionManager检索ManagedClientConnection时使用的超时(毫秒)。
@Deprecated public static void setTimeout(HttpParams params, long timeout)
ClientConnectionManager检索ManagedClientConnection时使用的超时时间(毫秒)。
timeout - 以毫秒为单位的超时时间
public static void setMaxConnectionsPerRoute(HttpParams params, ConnPerRoute connPerRoute)
params - HTTP参数
connPerRoute - 每个路由允许的最大连接数量的查找接口
public static ConnPerRoute getMaxConnectionsPerRoute(HttpParams params)
params - HTTP参数
public static void setMaxTotalConnections(HttpParams params, int maxTotalConnections)
params - HTTP参数
maxTotalConnections - 允许的最大连接数。
public static int getMaxTotalConnections(HttpParams params)
params - HTTP参数
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.