@Test public void testGetConfig() throws NacosException { configService.publishConfig(DATA_ID, GROUP_ID, CONTENT); Assert.assertEquals(CONTENT, configService.getConfig(DATA_ID, GROUP_ID, 5000)); }
@Override public String getConfig(String dataId, String group, long timeoutMs) throws NacosException { try { return configService.getConfig(dataId, group, timeoutMs); } catch (NacosException e) { if (NacosException.SERVER_ERROR == e.getErrCode()) { publishEvent(new NacosConfigTimeoutEvent(configService, dataId, group, timeoutMs, e.getErrMsg())); } throw e; } }
EventPublishingConfigService implements ConfigService, NacosServiceMetaData { @Override public String getConfig(String dataId, String group, long timeoutMs) throws NacosException { try { return configService.getConfig(dataId, group, timeoutMs); } catch (NacosException e) { if (NacosException.SERVER_ERROR == e.getErrCode()) { publishEvent(new NacosConfigTimeoutEvent(configService, dataId, group, timeoutMs, e.getErrMsg())); } throw e; } } }
EventPublishingConfigService implements ConfigService, NacosServiceMetaData { @Override public String getConfig(String dataId, String group, long timeoutMs) throws NacosException { try { return configService.getConfig(dataId, group, timeoutMs); } catch (NacosException e) { if (NacosException.SERVER_ERROR == e.getErrCode()) { publishEvent(new NacosConfigTimeoutEvent(configService, dataId, group, timeoutMs, e.getErrMsg())); } throw e; } } EventPublishingConfigService(ConfigService configService,
			Properties properties, ConfigurableApplicationContext context,
			Executor executor); }
EventPublishingConfigService implements ConfigService, NacosServiceMetaData { @Override public String getConfig(String dataId, String group, long timeoutMs) throws NacosException { try { return configService.getConfig(dataId, group, timeoutMs); } catch (NacosException e) { if (NacosException.SERVER_ERROR == e.getErrCode()) { publishEvent(new NacosConfigTimeoutEvent(configService, dataId, group, timeoutMs, e.getErrMsg())); } throw e; } } EventPublishingConfigService(ConfigService configService,
			Properties properties, ConfigurableApplicationContext context,
			Executor executor); @Override String getConfig(String dataId, String group, long timeoutMs); @Override String getConfigAndSignListener(String dataId, String group, long timeoutMs,
			Listener listener); void addListener(String dataId, String group, String type, Listener listener); @Override void addListener(String dataId, String group, Listener listener); @Override boolean publishConfig(String dataId, String group, String content); @Override boolean removeConfig(String dataId, String group); @Override void removeListener(String dataId, String group, Listener listener); @Override String getServerStatus(); @Override Properties getProperties(); }
EventPublishingConfigService implements ConfigService, NacosServiceMetaData { @Override public String getConfig(String dataId, String group, long timeoutMs) throws NacosException { try { return configService.getConfig(dataId, group, timeoutMs); } catch (NacosException e) { if (NacosException.SERVER_ERROR == e.getErrCode()) { publishEvent(new NacosConfigTimeoutEvent(configService, dataId, group, timeoutMs, e.getErrMsg())); } throw e; } } EventPublishingConfigService(ConfigService configService,
			Properties properties, ConfigurableApplicationContext context,
			Executor executor); @Override String getConfig(String dataId, String group, long timeoutMs); @Override String getConfigAndSignListener(String dataId, String group, long timeoutMs,
			Listener listener); void addListener(String dataId, String group, String type, Listener listener); @Override void addListener(String dataId, String group, Listener listener); @Override boolean publishConfig(String dataId, String group, String content); @Override boolean removeConfig(String dataId, String group); @Override void removeListener(String dataId, String group, Listener listener); @Override String getServerStatus(); @Override Properties getProperties();  }