public enum ShardingPropertiesConstant extends Enum<ShardingPropertiesConstant>
| 枚举常量和说明 |
|---|
EXECUTOR_SIZE
工作线程数量.
|
METRICS_ENABLE
是否开启SQL.
|
METRICS_MILLISECONDS_PERIOD
度量输出周期.
|
SQL_SHOW
是否开启显示SQL.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ShardingPropertiesConstant |
findByKey(String key)
根据属性键查找枚举.
|
static ShardingPropertiesConstant |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ShardingPropertiesConstant[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ShardingPropertiesConstant SQL_SHOW
默认值: 关闭
public static final ShardingPropertiesConstant METRICS_ENABLE
默认值: 关闭
public static final ShardingPropertiesConstant METRICS_MILLISECONDS_PERIOD
单位: 毫秒. 默认值: 30000毫秒.
public static final ShardingPropertiesConstant EXECUTOR_SIZE
默认值: 100
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 © 2017. All rights reserved.