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