类 NopDynamicConfiguration
- java.lang.Object
-
- org.apache.dubbo.common.config.configcenter.nop.NopDynamicConfiguration
-
- 所有已实现的接口:
AutoCloseable
,DynamicConfiguration
,Configuration
@Deprecated public class NopDynamicConfiguration extends Object implements DynamicConfiguration
已过时。The default extension ofDynamicConfiguration
. If user does not specify a config center, or specifies one that is not a valid extension, it will default to this one.
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.common.config.configcenter.DynamicConfiguration
DEFAULT_GROUP
-
-
构造器概要
构造器 构造器 说明 NopDynamicConfiguration(URL url)
已过时。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
addListener(String key, String group, ConfigurationListener listener)
已过时。Register a configuration listener for a specified key The listener only works for service governance purpose, so the target group would always be the value user specifies at startup or 'dubbo' by default.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 groupObject
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.-
从接口继承的方法 org.apache.dubbo.common.config.Configuration
containsKey, convert, getBoolean, getBoolean, getBoolean, getInt, getInt, getInteger, getProperty, getProperty, getString, getString
-
从接口继承的方法 org.apache.dubbo.common.config.configcenter.DynamicConfiguration
addListener, close, getConfig, getConfigItem, getDefaultGroup, getDefaultTimeout, getProperties, getProperties, publishConfig, publishConfigCas, removeConfig, removeListener
-
-
-
-
构造器详细资料
-
NopDynamicConfiguration
public NopDynamicConfiguration(URL url)
已过时。
-
-
方法详细资料
-
getInternalProperty
public Object getInternalProperty(String key)
已过时。- 指定者:
getInternalProperty
在接口中Configuration
-
addListener
public void addListener(String key, String group, ConfigurationListener listener)
已过时。从接口复制的说明:DynamicConfiguration
Register a configuration listener for a specified key The listener only works for service governance purpose, so the target group would always be the value user specifies at startup or 'dubbo' by default. This method will only register listener, which means it will not trigger a notification that contains the current value.- 指定者:
addListener
在接口中DynamicConfiguration
- 参数:
key
- the key to represent a configurationgroup
- the group where the key belongs tolistener
- configuration listener
-
removeListener
public void removeListener(String key, String group, ConfigurationListener listener)
已过时。从接口复制的说明:DynamicConfiguration
Stops one listener from listening to value changes in the specified key.- 指定者:
removeListener
在接口中DynamicConfiguration
- 参数:
key
- the key to represent a configurationgroup
- the group where the key belongs tolistener
- configuration listener
-
getConfig
public String getConfig(String key, String group, long timeout) throws IllegalStateException
已过时。从接口复制的说明:DynamicConfiguration
Get the configuration mapped to the given key and the given group. If the configuration fails to fetch after timeout exceeds, IllegalStateException will be thrown.- 指定者:
getConfig
在接口中DynamicConfiguration
- 参数:
key
- the key to represent a configurationgroup
- the group where the key belongs totimeout
- timeout value for fetching the target config- 返回:
- target configuration mapped to the given key and the given group, IllegalStateException will be thrown if timeout exceeds.
- 抛出:
IllegalStateException
-
publishConfig
public boolean publishConfig(String key, String group, String content)
已过时。从接口复制的说明:DynamicConfiguration
Publish Config mapped to the given key and the given group.- 指定者:
publishConfig
在接口中DynamicConfiguration
- 参数:
key
- the key to represent a configurationgroup
- the group where the key belongs tocontent
- the content of configuration- 返回:
true
if success, orfalse
- 从以下版本开始:
- 2.7.5
-
getConfigKeys
public SortedSet<String> getConfigKeys(String group)
已过时。从接口复制的说明:DynamicConfiguration
Get the config keys by the specified group- 指定者:
getConfigKeys
在接口中DynamicConfiguration
- 参数:
group
- the specified group- 返回:
- the read-only non-null sorted
set
of config keys - 从以下版本开始:
- 2.7.5
-
-