Package org.apache.pulsar.zookeeper
Class LocalZooKeeperCache
- java.lang.Object
-
- org.apache.pulsar.zookeeper.ZooKeeperCache
-
- org.apache.pulsar.zookeeper.LocalZooKeeperCache
-
- All Implemented Interfaces:
org.apache.zookeeper.Watcher
public class LocalZooKeeperCache extends ZooKeeperCache
Per ZK client ZooKeeper cache supporting ZNode data and children list caches. A cache entry is identified, accessed and invalidated by the ZNode path. For the data cache, ZNode data parsing is done at request time with the givenZooKeeperCache.Deserializerargument.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pulsar.zookeeper.ZooKeeperCache
ZooKeeperCache.CacheUpdater<T>, ZooKeeperCache.Deserializer<T>
-
-
Field Summary
-
Fields inherited from class org.apache.pulsar.zookeeper.ZooKeeperCache
childrenCache, dataCache, existsCache, ZK_CACHE_INSTANCE, zkSession
-
-
Constructor Summary
Constructors Constructor Description LocalZooKeeperCache(org.apache.zookeeper.ZooKeeper zk, int zkOperationTimeoutSeconds, org.apache.bookkeeper.common.util.OrderedExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidprocess(org.apache.zookeeper.WatchedEvent event, ZooKeeperCache.CacheUpdater<T> updater)-
Methods inherited from class org.apache.pulsar.zookeeper.ZooKeeperCache
asyncInvalidate, checkRegNodeAndWaitExpired, exists, existsAsync, getChildren, getChildrenAsync, getChildrenIfPresent, getData, getData, getDataAsync, getDataAsync, getDataIfPresent, getEntry, getEntryAsync, getZkOperationTimeoutSeconds, getZooKeeper, invalidate, invalidateAll, invalidateAllChildren, invalidateAllData, invalidateChildren, invalidateData, invalidateRoot, process, stop
-
-
-
-
Method Detail
-
process
public <T> void process(org.apache.zookeeper.WatchedEvent event, ZooKeeperCache.CacheUpdater<T> updater)- Overrides:
processin classZooKeeperCache
-
-