public class ZookeeperDynamicConfiguration extends Object implements DynamicConfiguration
DEFAULT_GROUP| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
String |
getConfigs(String key,
String group,
long timeout)
For zookeeper,
getConfig(String, String, long) and getConfigs(String, String, long) have the same meaning. |
Object |
getInternalProperty(String key) |
void |
removeListener(String key,
String group,
ConfigurationListener listener)
Stops one listener from listening to value changes in the specified key.
|
addListener, getConfig, getConfig, getConfigs, getDynamicConfiguration, removeListenercontainsKey, convert, getProperty, getProperty, getString, getStringpublic Object getInternalProperty(String key)
getInternalProperty 在接口中 Configurationkey - e.g., {service}.configurators, {service}.tagrouters, {group}.dubbo.propertiespublic void addListener(String key, String group, ConfigurationListener listener)
addListener 在接口中 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 在接口中 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 在接口中 DynamicConfigurationkey - the key to represent a configurationgroup - the group where the key belongs totimeout - timeout value for fetching the target configIllegalStateExceptionpublic String getConfigs(String key, String group, long timeout) throws IllegalStateException
getConfig(String, String, long) and getConfigs(String, String, long) have the same meaning.getConfigs 在接口中 DynamicConfigurationkey - group - timeout - IllegalStateExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.