public void reloadConnectionControlRule(boolean external) {
        NotifyCenter.publishEvent(new ConnectionLimitRuleChangeEvent(external));
    }
@Test
    void testReloadConnectionControlRule() throws Exception {
        String localRuleStorageBaseDir =
                EnvUtils.getNacosHome() + File.separator + "tmpConnection" + File.separator + "connection" + File.separator;
        ControlConfigs.getInstance().setLocalRuleStorageBaseDir(localRuleStorageBaseDir);
        resetRuleStorageProxy();
        ConnectionControlRule connectionLimitRule = new ConnectionControlRule();
        connectionLimitRule.setCountLimit(100);
        String ruleContent = JacksonUtils.toJson(connectionLimitRule);
        
        ControlManagerCenter controlManagerCenter = ControlManagerCenter.getInstance();
        controlManagerCenter.getRuleStorageProxy().getLocalDiskStorage().saveConnectionRule(ruleContent);
        ConnectionControlManager connectionControlManager = controlManagerCenter.getConnectionControlManager();
        //apply rule
        connectionControlManager.applyConnectionLimitRule(connectionLimitRule);
        ConnectionControlRule connectionLimitRule1 = connectionControlManager.getConnectionLimitRule();
        assertEquals(100, connectionLimitRule1.getCountLimit());
        
        ConnectionControlRule connectionLimitRule2 = new ConnectionControlRule();
        connectionLimitRule2.setCountLimit(200);
        String ruleContent2 = JacksonUtils.toJson(connectionLimitRule2);
        controlManagerCenter.getRuleStorageProxy().getLocalDiskStorage().saveConnectionRule(ruleContent2);
        //reload new rule
        controlManagerCenter.reloadConnectionControlRule(false);
        
        //wait event
        TimeUnit.SECONDS.sleep(1);
        ConnectionControlRule connectionLimitRule3 = connectionControlManager.getConnectionLimitRule();
        assertEquals(200, connectionLimitRule3.getCountLimit());
    }