Class NacosDynamicConfiguration
java.lang.Object
org.apache.dubbo.configcenter.support.nacos.NacosDynamicConfiguration
- All Implemented Interfaces:
AutoCloseable,DynamicConfiguration,Configuration
The nacos implementation of
DynamicConfiguration-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.dubbo.common.config.Configuration
interfaceLevelLoggerFields inherited from interface org.apache.dubbo.common.config.configcenter.DynamicConfiguration
DEFAULT_GROUP -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(String key, String group, ConfigurationListener listener) voidclose()getConfigItem(String key, String group) longbooleanpublishConfig(String key, String group, String content) booleanpublishConfigCas(String key, String group, String content, Object ticket) booleanremoveConfig(String key, String group) voidremoveListener(String key, String group, ConfigurationListener listener) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.config.Configuration
containsKey, convert, getBoolean, getBoolean, getBoolean, getInt, getInt, getInteger, getProperty, getProperty, getString, getStringMethods inherited from interface org.apache.dubbo.common.config.configcenter.DynamicConfiguration
addListener, getConfig, getDefaultGroup, getProperties, getProperties, publishConfig, removeListener
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceDynamicConfiguration- Throws:
Exception
-
addListener
- Specified by:
addListenerin interfaceDynamicConfiguration
-
removeListener
- Specified by:
removeListenerin interfaceDynamicConfiguration
-
getConfig
- Specified by:
getConfigin interfaceDynamicConfiguration- Throws:
IllegalStateException
-
getConfigItem
- Specified by:
getConfigItemin interfaceDynamicConfiguration
-
getInternalProperty
- Specified by:
getInternalPropertyin interfaceConfiguration
-
publishConfig
- Specified by:
publishConfigin interfaceDynamicConfiguration
-
publishConfigCas
- Specified by:
publishConfigCasin interfaceDynamicConfiguration
-
getDefaultTimeout
public long getDefaultTimeout()- Specified by:
getDefaultTimeoutin interfaceDynamicConfiguration
-
removeConfig
- Specified by:
removeConfigin interfaceDynamicConfiguration
-