public class CacheListener extends Object implements DataListener
| 构造器和说明 |
|---|
CacheListener(String rootPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(String key,
ConfigurationListener configurationListener) |
void |
dataChanged(String path,
Object value,
EventType eventType) |
Set<ConfigurationListener> |
getConfigurationListeners(String key) |
void |
removeAllListeners() |
void |
removeListener(String key,
ConfigurationListener configurationListener) |
public CacheListener(String rootPath)
public void addListener(String key, ConfigurationListener configurationListener)
public void removeListener(String key, ConfigurationListener configurationListener)
public void removeAllListeners()
public Set<ConfigurationListener> getConfigurationListeners(String key)
public void dataChanged(String path, Object value, EventType eventType)
dataChanged 在接口中 DataListenerCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.