public final class Constants
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_SIZE
块大小,不能改变
|
static int |
CONNECT_TIMEOUT
连接超时时间 单位秒(默认10s)
|
static int |
CONNECTION_POOL_MAX_IDLE_COUNT
底层HTTP库中复用连接对象的最大空闲数量
|
static int |
CONNECTION_POOL_MAX_IDLE_MINUTES
底层HTTP库中复用连接对象的回收周期(单位分钟)
|
static int |
DISPATCHER_MAX_REQUESTS
底层HTTP库所有的并发执行的请求数量
|
static int |
DISPATCHER_MAX_REQUESTS_PER_HOST
底层HTTP库对每个独立的Host进行并发请求的数量
|
static int |
READ_TIMEOUT
回复超时时间 单位秒(默认30s)
|
static java.nio.charset.Charset |
UTF_8
所有都是UTF-8编码
|
static java.lang.String |
VERSION
版本号
|
static int |
WRITE_TIMEOUT
写超时时间 单位秒(默认 0 , 不超时)
|
public static final java.lang.String VERSION
public static final int BLOCK_SIZE
public static final java.nio.charset.Charset UTF_8
public static final int CONNECT_TIMEOUT
public static final int WRITE_TIMEOUT
public static final int READ_TIMEOUT
public static final int DISPATCHER_MAX_REQUESTS
public static final int DISPATCHER_MAX_REQUESTS_PER_HOST
public static final int CONNECTION_POOL_MAX_IDLE_COUNT
public static final int CONNECTION_POOL_MAX_IDLE_MINUTES