public class MasterSlaveDataSource extends AbstractDataSourceAdapter
| Constructor and Description |
|---|
MasterSlaveDataSource(Map<String,DataSource> dataSourceMap,
org.apache.shardingsphere.api.config.masterslave.MasterSlaveRuleConfiguration masterSlaveRuleConfig,
Properties props) |
MasterSlaveDataSource(Map<String,DataSource> dataSourceMap,
org.apache.shardingsphere.core.rule.MasterSlaveRule masterSlaveRule,
Properties props) |
| Modifier and Type | Method and Description |
|---|---|
MasterSlaveConnection |
getConnection() |
close, getConnection, getDatabaseType, getParentLoggergetLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogWriter, setLogWriterisWrapperFor, unwrappublic MasterSlaveDataSource(Map<String,DataSource> dataSourceMap, org.apache.shardingsphere.api.config.masterslave.MasterSlaveRuleConfiguration masterSlaveRuleConfig, Properties props) throws SQLException
SQLExceptionpublic MasterSlaveDataSource(Map<String,DataSource> dataSourceMap, org.apache.shardingsphere.core.rule.MasterSlaveRule masterSlaveRule, Properties props) throws SQLException
SQLExceptionpublic final MasterSlaveConnection getConnection()
Copyright © 2019 The Apache Software Foundation. All rights reserved.