public class ApolloDynamicConfiguration extends Object implements DynamicConfiguration
| 限定符和类型 | 类和说明 |
|---|---|
class |
ApolloDynamicConfiguration.ApolloListener |
DEFAULT_GROUP| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(String key,
String group,
ConfigurationListener listener)
Since all governance rules will lay under dubbo group, this method now always uses the default dubboConfig and
ignores the group parameter.
|
String |
getConfig(String key,
String group,
long timeout)
Get the configuration mapped to the given key and the given group.
|
String |
getInternalProperty(String key)
This method will be used by Configuration to get valid value at runtime.
|
String |
getProperties(String key,
String group,
long timeout)
Recommend specify namespace and group when using Apollo.
|
void |
removeListener(String key,
String group,
ConfigurationListener listener)
Stops one listener from listening to value changes in the specified key.
|
addListener, close, getConfig, getConfigKeys, getDefaultGroup, getDefaultTimeout, getDynamicConfiguration, getDynamicConfiguration, getProperties, getRuleKey, publishConfig, publishConfig, removeConfig, removeListenercontainsKey, convert, getBoolean, getBoolean, getBoolean, getInt, getInt, getInteger, getProperty, getProperty, getString, getString, toBooleanObjectpublic 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 getProperties(String key, String group, long timeout) throws IllegalStateException
getProperties 在接口中 DynamicConfigurationkey - default value is 'dubbo.properties', currently useless for Apollo.group - timeout - IllegalStateExceptionpublic String getInternalProperty(String key)
getInternalProperty 在接口中 ConfigurationCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.