public class OrchestrationMasterSlaveDataSource extends MasterSlaveDataSource implements AutoCloseable
| 构造器和说明 |
|---|
OrchestrationMasterSlaveDataSource(Map<String,DataSource> dataSourceMap,
MasterSlaveRuleConfiguration masterSlaveRuleConfig,
Map<String,Object> configMap,
OrchestrationConfiguration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
init()
Initialize for master-slave orchestration.
|
getAllDataSources, getConnection, getDataSource, getMasterDataSource, getMasterSlaveRule, renew, resetDMLFlaggetConnection, getDatabaseType, getDatabaseType, getLogWriter, getParentLogger, setLogWritergetLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWrapperFor, unwrappublic OrchestrationMasterSlaveDataSource(Map<String,DataSource> dataSourceMap, MasterSlaveRuleConfiguration masterSlaveRuleConfig, Map<String,Object> configMap, OrchestrationConfiguration config) throws SQLException
SQLExceptionpublic void init()
throws SQLException
SQLException - SQL exceptionpublic void close()
close 在接口中 AutoCloseableCopyright © 2018. All rights reserved.