public class NacosDynamicConfiguration extends Object implements DynamicConfiguration
DynamicConfiguration| Modifier and Type | Class and Description |
|---|---|
class |
NacosDynamicConfiguration.NacosConfigListener |
DEFAULT_GROUPinterfaceLevelLogger| Modifier and Type | Method and Description |
|---|---|
void |
addListener(String key,
String group,
ConfigurationListener listener) |
void |
close() |
String |
getConfig(String key,
String group,
long timeout) |
ConfigItem |
getConfigItem(String key,
String group) |
long |
getDefaultTimeout() |
Object |
getInternalProperty(String key) |
boolean |
publishConfig(String key,
String group,
String content) |
boolean |
publishConfigCas(String key,
String group,
String content,
Object ticket) |
boolean |
removeConfig(String key,
String group) |
void |
removeListener(String key,
String group,
ConfigurationListener listener) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, getConfig, getDefaultGroup, getProperties, getProperties, getRuleKey, publishConfig, removeListenercontainsKey, convert, getBoolean, getBoolean, getBoolean, getInt, getInt, getInteger, getProperty, getProperty, getString, getString, toBooleanObjectpublic void close()
throws Exception
close in interface AutoCloseableclose in interface DynamicConfigurationExceptionpublic void addListener(String key, String group, ConfigurationListener listener)
addListener in interface DynamicConfigurationpublic void removeListener(String key, String group, ConfigurationListener listener)
removeListener in interface DynamicConfigurationpublic String getConfig(String key, String group, long timeout) throws IllegalStateException
getConfig in interface DynamicConfigurationIllegalStateExceptionpublic ConfigItem getConfigItem(String key, String group)
getConfigItem in interface DynamicConfigurationpublic Object getInternalProperty(String key)
getInternalProperty in interface Configurationpublic boolean publishConfig(String key, String group, String content)
publishConfig in interface DynamicConfigurationpublic boolean publishConfigCas(String key, String group, String content, Object ticket)
publishConfigCas in interface DynamicConfigurationpublic long getDefaultTimeout()
getDefaultTimeout in interface DynamicConfigurationpublic boolean removeConfig(String key, String group)
removeConfig in interface DynamicConfigurationCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.