public class OrchestrationShardingDataSource extends ShardingDataSource
Constructor and Description |
---|
OrchestrationShardingDataSource(Map<String,DataSource> dataSourceMap,
ShardingRuleConfiguration shardingRuleConfig,
Map<String,Object> configMap,
Properties props,
OrchestrationFacade orchestrationFacade) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
init()
Initialize for sharding orchestration.
|
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 OrchestrationShardingDataSource(Map<String,DataSource> dataSourceMap, ShardingRuleConfiguration shardingRuleConfig, Map<String,Object> configMap, Properties props, OrchestrationFacade orchestrationFacade) throws SQLException
SQLException
public void init()
public void close()
close
in interface AutoCloseable
close
in class ShardingDataSource
Copyright © 2018. All rights reserved.