public enum ShardingPropertiesConstant extends Enum<ShardingPropertiesConstant>
Enum Constant and Description |
---|
EXECUTOR_SIZE
Worker thread max size.
|
SQL_SHOW
Enable or Disable to show SQL details.
|
Modifier and Type | Method and Description |
---|---|
static ShardingPropertiesConstant |
findByKey(String key)
Find value via property key.
|
static ShardingPropertiesConstant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShardingPropertiesConstant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ShardingPropertiesConstant findByKey(String key)
key
- property keynull
if not foundCopyright © 2018. All rights reserved.