public enum ShardingPropertiesConstant extends Enum<ShardingPropertiesConstant>
| 枚举常量和说明 |
|---|
EXECUTOR_SIZE
Worker thread max size.
|
SQL_SHOW
Enable or Disable to show SQL details.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ShardingPropertiesConstant |
findByKey(String key)
Find value via property key.
|
static ShardingPropertiesConstant |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ShardingPropertiesConstant[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ShardingPropertiesConstant SQL_SHOW
Print SQL details can help developers debug easier.
The details includes: logic SQL, parse context and rewrote actual SQL list.
Enable this property will log into log topic: Sharding-Sphere-SQL, log level is INFO.
Default: false
public static final ShardingPropertiesConstant EXECUTOR_SIZE
Execute SQL Statement and PrepareStatement will use this thread pool. One sharding data source will use a independent thread pool, it does not share thread pool even different data source in same JVM. Default: same with CPU cores.
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 - property keynull if not foundCopyright © 2018. All rights reserved.