Package com.qiniu.common
Class Constants
- java.lang.Object
-
- com.qiniu.common.Constants
-
public final class Constants extends java.lang.ObjectSDK相关配置常量
-
-
Field Summary
Fields Modifier and Type Field Description static intBLOCK_SIZE块大小,不能改变static intCONNECT_TIMEOUT连接超时时间 单位秒(默认10s)static intCONNECTION_POOL_MAX_IDLE_COUNT底层HTTP库中复用连接对象的最大空闲数量static intCONNECTION_POOL_MAX_IDLE_MINUTES底层HTTP库中复用连接对象的回收周期(单位分钟)static intDISPATCHER_MAX_REQUESTS底层HTTP库所有的并发执行的请求数量static intDISPATCHER_MAX_REQUESTS_PER_HOST底层HTTP库对每个独立的Host进行并发请求的数量static intREAD_TIMEOUT回复超时时间 单位秒(默认30s)static java.nio.charset.CharsetUTF_8所有都是UTF-8编码static java.lang.StringVERSION版本号static intWRITE_TIMEOUT写超时时间 单位秒(默认 0 , 不超时)
-
-
-
Field Detail
-
VERSION
public static final java.lang.String VERSION
版本号- See Also:
- Constant Field Values
-
BLOCK_SIZE
public static final int BLOCK_SIZE
块大小,不能改变- See Also:
- Constant Field Values
-
UTF_8
public static final java.nio.charset.Charset UTF_8
所有都是UTF-8编码
-
CONNECT_TIMEOUT
public static final int CONNECT_TIMEOUT
连接超时时间 单位秒(默认10s)- See Also:
- Constant Field Values
-
WRITE_TIMEOUT
public static final int WRITE_TIMEOUT
写超时时间 单位秒(默认 0 , 不超时)- See Also:
- Constant Field Values
-
READ_TIMEOUT
public static final int READ_TIMEOUT
回复超时时间 单位秒(默认30s)- See Also:
- Constant Field Values
-
DISPATCHER_MAX_REQUESTS
public static final int DISPATCHER_MAX_REQUESTS
底层HTTP库所有的并发执行的请求数量- See Also:
- Constant Field Values
-
DISPATCHER_MAX_REQUESTS_PER_HOST
public static final int DISPATCHER_MAX_REQUESTS_PER_HOST
底层HTTP库对每个独立的Host进行并发请求的数量- See Also:
- Constant Field Values
-
CONNECTION_POOL_MAX_IDLE_COUNT
public static final int CONNECTION_POOL_MAX_IDLE_COUNT
底层HTTP库中复用连接对象的最大空闲数量- See Also:
- Constant Field Values
-
CONNECTION_POOL_MAX_IDLE_MINUTES
public static final int CONNECTION_POOL_MAX_IDLE_MINUTES
底层HTTP库中复用连接对象的回收周期(单位分钟)- See Also:
- Constant Field Values
-
-