public final class JConstants extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
AVAILABLE_PROCESSORS
Cpu核心数
|
static String |
DEFAULT_GROUP
服务默认组别
|
static long |
DEFAULT_TIMEOUT
默认的调用超时时间为3秒
|
static String |
DEFAULT_VERSION
服务默认版本号
|
static int |
DEFAULT_WARM_UP
Load balancer 默认预热时间
|
static int |
DEFAULT_WEIGHT
Load balancer 默认权重
|
static int |
MAX_WEIGHT
Load balancer 最大权重
|
static boolean |
METRIC_CSV_REPORTER
Metrics csv reporter
|
static String |
METRIC_CSV_REPORTER_DIRECTORY
Metrics csv reporter directory
|
static int |
METRIC_REPORT_PERIOD
Metrics reporter period
|
static String |
NEWLINE
换行符
|
static int |
READER_IDLE_TIME_SECONDS
Server链路read空闲检测, 默认60秒, 60秒没读到任何数据会强制关闭连接
|
static int |
SUGGESTED_CONNECTION_COUNT
Suggest that the count of connections
|
static String |
UNKNOWN_APP_NAME
未知应用名称
|
static Charset |
UTF8 |
static String |
UTF8_CHARSET
字符编码
|
static int |
WRITER_IDLE_TIME_SECONDS
Client链路write空闲检测, 默认30秒, 30秒没有向链路中写入任何数据时Client会主动向Server发送心跳数据包
|
| 构造器和说明 |
|---|
JConstants() |
public static final String NEWLINE
public static final Charset UTF8
public static final int AVAILABLE_PROCESSORS
public static final long DEFAULT_TIMEOUT
public static final int READER_IDLE_TIME_SECONDS
public static final int WRITER_IDLE_TIME_SECONDS
public static final int DEFAULT_WARM_UP
public static final int DEFAULT_WEIGHT
public static final int MAX_WEIGHT
public static final int SUGGESTED_CONNECTION_COUNT
public static final boolean METRIC_CSV_REPORTER
public static final String METRIC_CSV_REPORTER_DIRECTORY
public static final int METRIC_REPORT_PERIOD
Copyright © 2018. All rights reserved.