shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/registry/cache/subscriber/ScalingRegistrySubscriber.java
/**
     * Switch rule configuration.
     *
     * @param event switch rule configuration event
     */
Switch rule configuration.
@param event switch rule configuration event
Switch rule configuration . @param event switch rule configuration event
@Subscribe
    public void switchRuleConfiguration(final SwitchRuleConfigurationEvent event) {
        persistService.persist(event.getSchemaName(), loadCachedRuleConfigurations(event.getSchemaName(), event.getRuleConfigurationCacheId()));
        registryCacheManager.deleteCache(SchemaMetaDataNode.getRulePath(event.getSchemaName()), event.getRuleConfigurationCacheId());
    }
@ Subscribe public void switchRuleConfiguration ( final SwitchRuleConfigurationEvent event ) { persistService . persist ( event . getSchemaName ( ) , loadCachedRuleConfigurations ( event . getSchemaName ( ) , event . getRuleConfigurationCacheId ( ) ) ) ; registryCacheManager . deleteCache ( SchemaMetaDataNode . getRulePath ( event . getSchemaName ( ) ) , event . getRuleConfigurationCacheId ( ) ) ; }
Switch rule configuration.
Switch rule configuration .