T - public class GlobalZooKeeperCache extends ZooKeeperCache implements Closeable
Deserializer argument.ZooKeeperCache.CacheUpdater<T>, ZooKeeperCache.Deserializer<T>childrenCache, dataCache, existsCache, ZK_CACHE_INSTANCE, zkSession| Constructor and Description |
|---|
GlobalZooKeeperCache(ZooKeeperClientFactory zkClientFactory,
int zkSessionTimeoutMillis,
int zkOperationTimeoutSeconds,
String globalZkConnect,
org.apache.bookkeeper.common.util.OrderedExecutor orderedExecutor,
ScheduledExecutorService scheduledExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
asyncRestartZooKeeperSession() |
void |
close() |
<T> void |
process(org.apache.zookeeper.WatchedEvent event,
ZooKeeperCache.CacheUpdater<T> updater) |
void |
start() |
asyncInvalidate, exists, getChildren, getChildren, getChildrenIfPresent, getData, getData, getDataAsync, getDataAsync, getDataIfPresent, getEntry, getEntryAsync, getZkOperationTimeoutSeconds, getZooKeeper, invalidate, invalidateAll, invalidateAllChildren, invalidateAllData, invalidateChildren, invalidateData, invalidateRoot, process, stoppublic GlobalZooKeeperCache(ZooKeeperClientFactory zkClientFactory, int zkSessionTimeoutMillis, int zkOperationTimeoutSeconds, String globalZkConnect, org.apache.bookkeeper.common.util.OrderedExecutor orderedExecutor, ScheduledExecutorService scheduledExecutor)
public void start()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic <T> void process(org.apache.zookeeper.WatchedEvent event,
ZooKeeperCache.CacheUpdater<T> updater)
process in class ZooKeeperCacheprotected void asyncRestartZooKeeperSession()
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.