public enum ShardingPropertiesConstant extends Enum<ShardingPropertiesConstant>
| 枚举常量和说明 |
|---|
EXECUTOR_MAX_IDLE_TIMEOUT_MILLISECONDS
工作线程空闲时超时时间.
|
EXECUTOR_MAX_SIZE
最大工作线程数量.
|
EXECUTOR_MIN_IDLE_SIZE
最小空闲工作线程数量.
|
METRICS_ENABLE
是否开启度量采集.
|
METRICS_LOGGER_NAME
度量输出在日志中的标识名称.
|
METRICS_MILLISECONDS_PERIOD
度量输出周期.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ShardingPropertiesConstant |
findByKey(String key)
根据属性键查找枚举.
|
static ShardingPropertiesConstant |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ShardingPropertiesConstant[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ShardingPropertiesConstant METRICS_ENABLE
默认值: 关闭
public static final ShardingPropertiesConstant METRICS_MILLISECONDS_PERIOD
单位: 毫秒. 默认值: 30000毫秒.
public static final ShardingPropertiesConstant METRICS_LOGGER_NAME
默认值: com.dangdang.ddframe.rdb.sharding.metrics
public static final ShardingPropertiesConstant EXECUTOR_MIN_IDLE_SIZE
默认值: 0
public static final ShardingPropertiesConstant EXECUTOR_MAX_SIZE
默认值: 100
public static final ShardingPropertiesConstant EXECUTOR_MAX_IDLE_TIMEOUT_MILLISECONDS
单位: 毫秒. 默认值: 60000毫秒.
public static ShardingPropertiesConstant[] values()
for (ShardingPropertiesConstant c : ShardingPropertiesConstant.values()) System.out.println(c);
public static ShardingPropertiesConstant valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static ShardingPropertiesConstant findByKey(String key)
key - 属性键Copyright © 2016. All rights reserved.