@SPI(value="default")
public interface GovernanceRuleRepository
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_GROUP |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
addListener(String key,
org.apache.dubbo.common.config.configcenter.ConfigurationListener listener)
|
void |
addListener(String key,
String group,
org.apache.dubbo.common.config.configcenter.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.
|
default String |
getRule(String key,
String group)
Get the governance rule mapped to the given key and the given group
|
String |
getRule(String key,
String group,
long timeout)
Get the governance rule mapped to the given key and the given group.
|
default void |
removeListener(String key,
org.apache.dubbo.common.config.configcenter.ConfigurationListener listener) |
void |
removeListener(String key,
String group,
org.apache.dubbo.common.config.configcenter.ConfigurationListener listener)
Stops one listener from listening to value changes in the specified key.
|
default void addListener(String key, org.apache.dubbo.common.config.configcenter.ConfigurationListener listener)
key - the key to represent a configurationlistener - configuration listenerdefault void removeListener(String key, org.apache.dubbo.common.config.configcenter.ConfigurationListener listener)
void addListener(String key, String group, org.apache.dubbo.common.config.configcenter.ConfigurationListener listener)
key - the key to represent a configurationgroup - the group where the key belongs tolistener - configuration listenervoid removeListener(String key, String group, org.apache.dubbo.common.config.configcenter.ConfigurationListener listener)
key - the key to represent a configurationgroup - the group where the key belongs tolistener - configuration listenerdefault String getRule(String key, String group)
key - the key to represent a configurationgroup - the group where the key belongs toString getRule(String key, String group, long timeout) throws IllegalStateException
key - the key to represent a configurationgroup - the group where the key belongs totimeout - timeout value for fetching the target configIllegalStateExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.