public class ZookeeperConfigObserver extends AbstractZookeeperObserver
| 构造器和说明 |
|---|
ZookeeperConfigObserver() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConfig(AbstractInterfaceConfig config,
String configPath,
org.apache.curator.framework.recipes.cache.ChildData data)
接口配置新增子节点Data
|
void |
addConfigListener(AbstractInterfaceConfig config,
ConfigListener listener)
Add config listener.
|
void |
removeConfig(AbstractInterfaceConfig config,
String configPath,
org.apache.curator.framework.recipes.cache.ChildData data)
接口配置删除子节点Data
|
void |
removeConfigListener(AbstractInterfaceConfig config)
Remove config listener.
|
void |
updateConfig(AbstractInterfaceConfig config,
String configPath,
org.apache.curator.framework.recipes.cache.ChildData data)
接口配置修改子节点Data
|
void |
updateConfigAll(AbstractInterfaceConfig config,
String configPath,
List<org.apache.curator.framework.recipes.cache.ChildData> currentData)
接口配置修改子节点Data列表
|
initOrAddListpublic void addConfigListener(AbstractInterfaceConfig config, ConfigListener listener)
config - the configlistener - the listenerpublic void removeConfigListener(AbstractInterfaceConfig config)
config - the configpublic void updateConfig(AbstractInterfaceConfig config, String configPath, org.apache.curator.framework.recipes.cache.ChildData data)
config - 接口配置configPath - 配置Pathdata - 子节点Datapublic void updateConfigAll(AbstractInterfaceConfig config, String configPath, List<org.apache.curator.framework.recipes.cache.ChildData> currentData)
config - 接口配置configPath - 配置PathcurrentData - 子节点Data列表public void removeConfig(AbstractInterfaceConfig config, String configPath, org.apache.curator.framework.recipes.cache.ChildData data)
config - 接口配置configPath - 配置Pathdata - 子节点Datapublic void addConfig(AbstractInterfaceConfig config, String configPath, org.apache.curator.framework.recipes.cache.ChildData data)
config - 接口配置configPath - 配置Pathdata - 子节点DataCopyright © 2008–2018 The Ant Financial. All rights reserved.