类 ShardingConfig
- java.lang.Object
-
- org.sagacity.sqltoy.config.model.ShardingConfig
-
- 所有已实现的接口:
Serializable
public class ShardingConfig extends Object implements Serializable
- 版本:
- v1.0,Date:2017年9月12日
- 作者:
- zhongxuchen
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ShardingConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetMaxConcurrents()intgetMaxWaitSeconds()ShardingStrategyConfiggetShardingDBStrategy()ShardingStrategyConfiggetShardingTableStrategy()booleanisGlobalRollback()voidsetGlobalRollback(boolean globalRollback)voidsetMaxConcurrents(int maxConcurrents)voidsetMaxWaitSeconds(int maxWaitSeconds)voidsetShardingDBStrategy(ShardingStrategyConfig shardingDBStrategy)voidsetShardingTableStrategy(ShardingStrategyConfig shardingTableStrategy)
-
-
-
方法详细资料
-
getShardingDBStrategy
public ShardingStrategyConfig getShardingDBStrategy()
- 返回:
- the shardingDBStrategy
-
setShardingDBStrategy
public void setShardingDBStrategy(ShardingStrategyConfig shardingDBStrategy)
- 参数:
shardingDBStrategy- the shardingDBStrategy to set
-
getShardingTableStrategy
public ShardingStrategyConfig getShardingTableStrategy()
- 返回:
- the shardingTableStrategy
-
setShardingTableStrategy
public void setShardingTableStrategy(ShardingStrategyConfig shardingTableStrategy)
- 参数:
shardingTableStrategy- the shardingTableStrategy to set
-
getMaxWaitSeconds
public int getMaxWaitSeconds()
- 返回:
- the maxWaitSeconds
-
setMaxWaitSeconds
public void setMaxWaitSeconds(int maxWaitSeconds)
- 参数:
maxWaitSeconds- the maxWaitSeconds to set
-
getMaxConcurrents
public int getMaxConcurrents()
- 返回:
- the maxConcurrents
-
setMaxConcurrents
public void setMaxConcurrents(int maxConcurrents)
- 参数:
maxConcurrents- the maxConcurrents to set
-
isGlobalRollback
public boolean isGlobalRollback()
- 返回:
- the globalRollback
-
setGlobalRollback
public void setGlobalRollback(boolean globalRollback)
- 参数:
globalRollback- the globalRollback to set
-
-