Modifier and Type | Method and Description |
---|---|
static MasterSlaveLoadBalanceAlgorithmType |
MasterSlaveLoadBalanceAlgorithmType.getDefaultAlgorithmType()
Get default master-slave database load-balance algorithm type.
|
static MasterSlaveLoadBalanceAlgorithmType |
MasterSlaveLoadBalanceAlgorithmType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MasterSlaveLoadBalanceAlgorithmType[] |
MasterSlaveLoadBalanceAlgorithmType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
SpringMasterSlaveDataSource(Map<String,DataSource> dataSourceMap,
String name,
String masterDataSourceName,
Collection<String> slaveDataSourceNames,
MasterSlaveLoadBalanceAlgorithmType strategyType) |
Constructor and Description |
---|
SpringMasterSlaveDataSource(Map<String,DataSource> dataSourceMap,
String name,
String masterDataSourceName,
Collection<String> slaveDataSourceNames,
MasterSlaveLoadBalanceAlgorithmType strategyType,
Map<String,Object> configMap) |
Copyright © 2018. All rights reserved.