public class SpringMasterSlaveDataSource extends MasterSlaveDataSource
Constructor and Description |
---|
SpringMasterSlaveDataSource(Map<String,DataSource> dataSourceMap,
String name,
String masterDataSourceName,
Collection<String> slaveDataSourceNames,
MasterSlaveLoadBalanceAlgorithm strategy) |
SpringMasterSlaveDataSource(Map<String,DataSource> dataSourceMap,
String name,
String masterDataSourceName,
Collection<String> slaveDataSourceNames,
MasterSlaveLoadBalanceAlgorithmType strategyType) |
getAllDataSources, getConnection, renew
getConnection, getDatabaseType, getLogWriter, getParentLogger, setLogWriter
getLoginTimeout, setLoginTimeout
isWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWrapperFor, unwrap
public SpringMasterSlaveDataSource(Map<String,DataSource> dataSourceMap, String name, String masterDataSourceName, Collection<String> slaveDataSourceNames, MasterSlaveLoadBalanceAlgorithm strategy) throws SQLException
SQLException
public SpringMasterSlaveDataSource(Map<String,DataSource> dataSourceMap, String name, String masterDataSourceName, Collection<String> slaveDataSourceNames, MasterSlaveLoadBalanceAlgorithmType strategyType) throws SQLException
SQLException
Copyright © 2018. All rights reserved.