@Subscribe
    @SneakyThrows
    public final synchronized void renew(final MasterSlaveRuleChangedEvent masterSlaveRuleChangedEvent) {
        dataSource = new MasterSlaveDataSource(
                dataSource.getDataSourceMap(), new OrchestrationMasterSlaveRule(masterSlaveRuleChangedEvent.getMasterSlaveRuleConfiguration()), dataSource.getShardingProperties().getProps());
    }
@ Subscribe @ SneakyThrows public final synchronized void renew ( final MasterSlaveRuleChangedEvent masterSlaveRuleChangedEvent ) { dataSource = new MasterSlaveDataSource ( dataSource . getDataSourceMap ( ) , new OrchestrationMasterSlaveRule ( masterSlaveRuleChangedEvent . getMasterSlaveRuleConfiguration ( ) ) , dataSource . getShardingProperties ( ) . getProps ( ) ) ; }
Renew master-slave rule.

@param masterSlaveRuleChangedEvent master-slave configuration changed event