public class ZooKeeperChildrenCache extends Object implements org.apache.zookeeper.Watcher, ZooKeeperCache.CacheUpdater<Set<String>>
| Constructor and Description |
|---|
ZooKeeperChildrenCache(ZooKeeperCache cache,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearTree() |
void |
close() |
Set<String> |
get() |
Set<String> |
get(String path) |
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
registerListener(ZooKeeperCacheListener<Set<String>> listener) |
void |
reloadCache(String path) |
void |
unregisterListener(ZooKeeperCacheListener<Set<String>> listener) |
public ZooKeeperChildrenCache(ZooKeeperCache cache, String path)
public Set<String> get() throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic Set<String> get(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void clear()
public void clearTree()
public void reloadCache(String path)
reloadCache in interface ZooKeeperCache.CacheUpdater<Set<String>>public void registerListener(ZooKeeperCacheListener<Set<String>> listener)
registerListener in interface ZooKeeperCache.CacheUpdater<Set<String>>public void unregisterListener(ZooKeeperCacheListener<Set<String>> listener)
unregisterListener in interface ZooKeeperCache.CacheUpdater<Set<String>>public void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.zookeeper.Watcherpublic void close()
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.