public class ClientConfiguration
extends java.lang.Object
构造器和说明 |
---|
ClientConfiguration()
构造新实例。
|
限定符和类型 | 方法和说明 |
---|---|
int |
getConnectionTimeout()
返回建立连接的超时时间(单位:毫秒)。
|
int |
getMaxConnections()
返回允许打开的最大HTTP连接数。
|
int |
getSocketTimeout()
返回通过打开的连接传输数据的超时时间(单位:毫秒)。
|
void |
setConnectionTimeout(int connectionTimeout)
设置建立连接的超时时间(单位:毫秒)。
|
void |
setMaxConnections(int maxConnections)
设置允许打开的最大HTTP连接数。
|
void |
setSocketTimeout(int socketTimeout)
设置通过打开的连接传输数据的超时时间(单位:毫秒)。
|
public int getMaxConnections()
public void setMaxConnections(int maxConnections)
maxConnections
- 最大HTTP连接数。public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
socketTimeout
- 通过打开的连接传输数据的超时时间(单位:毫秒)。public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout
- 建立连接的超时时间(单位:毫秒)。