public enum ShardingPropertiesConstant extends Enum<ShardingPropertiesConstant>
| 枚举常量和说明 |
|---|
ACCEPTOR_SIZE
Worker group or user group thread max size.
|
CONNECTION_MODE
Connection mode of connected to databases.
|
EXECUTOR_SIZE
Worker thread max size.
|
PROXY_BACKEND_CONNECTION_TIMEOUT_SECONDS |
PROXY_BACKEND_MAX_CONNECTIONS |
PROXY_BACKEND_USE_NIO |
PROXY_TRANSACTION_MODE |
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 ACCEPTOR_SIZE
Worker group accept tcp connection. User group accept MySQL command. Default: CPU cores * 2.
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: infinite.
public static final ShardingPropertiesConstant CONNECTION_MODE
MEMORY_STRICTLY: Sharding-Sphere holds as many connections as the count of actual tables routed in a database. The benefit of this approach is saving memory for Proxy by Stream ResultSet.
CONNECTION_STRICTLY: harding-Sphere will release connections after get the overall rows from the ResultSet. Meanwhile, the cost of the memory will be increased.
public static final ShardingPropertiesConstant PROXY_TRANSACTION_MODE
public static final ShardingPropertiesConstant PROXY_BACKEND_USE_NIO
public static final ShardingPropertiesConstant PROXY_BACKEND_MAX_CONNECTIONS
public static final ShardingPropertiesConstant PROXY_BACKEND_CONNECTION_TIMEOUT_SECONDS
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.