Package com.qiniu.sms
Class Configuration
- java.lang.Object
-
- com.qiniu.sms.Configuration
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Configuration extends java.lang.Object implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description int
connectionPoolMaxIdleCount
底层HTTP库中复用连接对象的最大空闲数量int
connectionPoolMaxIdleMinutes
底层HTTP库中复用连接对象的回收周期(单位分钟)int
connectTimeout
连接超时时间 单位秒(默认10s)static java.lang.String
defaultSmsHost
int
dispatcherMaxRequests
底层HTTP库所有的并发执行的请求数量int
dispatcherMaxRequestsPerHost
底层HTTP库对每个独立的Host进行并发请求的数量int
readTimeout
回复超时时间 单位秒(默认30s)int
retryMax
上传失败重试次数int
writeTimeout
写超时时间 单位秒(默认 0 , 不超时)
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configuration
clone()
java.lang.String
smsHost()
-
-
-
Field Detail
-
defaultSmsHost
public static java.lang.String defaultSmsHost
-
connectTimeout
public int connectTimeout
连接超时时间 单位秒(默认10s)
-
writeTimeout
public int writeTimeout
写超时时间 单位秒(默认 0 , 不超时)
-
readTimeout
public int readTimeout
回复超时时间 单位秒(默认30s)
-
dispatcherMaxRequests
public int dispatcherMaxRequests
底层HTTP库所有的并发执行的请求数量
-
dispatcherMaxRequestsPerHost
public int dispatcherMaxRequestsPerHost
底层HTTP库对每个独立的Host进行并发请求的数量
-
connectionPoolMaxIdleCount
public int connectionPoolMaxIdleCount
底层HTTP库中复用连接对象的最大空闲数量
-
connectionPoolMaxIdleMinutes
public int connectionPoolMaxIdleMinutes
底层HTTP库中复用连接对象的回收周期(单位分钟)
-
retryMax
public int retryMax
上传失败重试次数
-
-
Method Detail
-
clone
public Configuration clone()
-
smsHost
public java.lang.String smsHost()
-
-