public class ZookeeperDynamicConfiguration extends Object implements DynamicConfiguration
DEFAULT_GROUP| Modifier and Type | Method and Description |
|---|---|
void |
addListener(String key,
String group,
ConfigurationListener listener)
For service governance, multi group is not supported by this implementation.
|
String |
getConfig(String key,
String group,
long timeout)
Get the configuration mapped to the given key and the given group.
|
SortedSet<String> |
getConfigKeys(String group)
Get the config keys by the specified group
|
Object |
getInternalProperty(String key) |
boolean |
publishConfig(String key,
String group,
String content)
Publish Config mapped to the given key and the given group.
|
void |
removeListener(String key,
String group,
ConfigurationListener listener)
Stops one listener from listening to value changes in the specified key.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, close, getConfig, getDefaultGroup, getDefaultTimeout, getDynamicConfiguration, getDynamicConfiguration, getProperties, getProperties, getRuleKey, publishConfig, removeListenercontainsKey, convert, getBoolean, getBoolean, getBoolean, getInt, getInt, getInteger, getProperty, getProperty, getString, getString, toBooleanObjectpublic Object getInternalProperty(String key)
getInternalProperty in interface Configurationkey - e.g., {service}.configurators, {service}.tagrouters, {group}.dubbo.propertiespublic void addListener(String key, String group, ConfigurationListener listener)
addListener in interface DynamicConfigurationkey - the key to represent a configurationgroup - the group where the key belongs tolistener - configuration listenerpublic void removeListener(String key, String group, ConfigurationListener listener)
DynamicConfigurationremoveListener in interface DynamicConfigurationkey - the key to represent a configurationgroup - the group where the key belongs tolistener - configuration listenerpublic String getConfig(String key, String group, long timeout) throws IllegalStateException
DynamicConfigurationgetConfig in interface DynamicConfigurationkey - the key to represent a configurationgroup - the group where the key belongs totimeout - timeout value for fetching the target configIllegalStateExceptionpublic boolean publishConfig(String key, String group, String content)
DynamicConfigurationpublishConfig in interface DynamicConfigurationkey - the key to represent a configurationgroup - the group where the key belongs tocontent - the content of configurationtrue if success, or falsepublic SortedSet<String> getConfigKeys(String group)
DynamicConfigurationgetConfigKeys in interface DynamicConfigurationgroup - the specified groupset of config keysCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.