Package | Description |
---|---|
org.apache.curator.framework.recipes.cache |
Modifier and Type | Method and Description |
---|---|
TreeCache.Builder |
TreeCache.Builder.disableZkWatches(boolean disableZkWatches)
By default, TreeCache creates
ZooKeeper watches for every created path. |
static TreeCache.Builder |
TreeCache.newBuilder(CuratorFramework client,
String path)
Deprecated.
Create a TreeCache builder for the given client and path to configure advanced options.
|
TreeCache.Builder |
TreeCache.Builder.setCacheData(boolean cacheData)
Sets whether or not to cache byte data per node; default
true . |
TreeCache.Builder |
TreeCache.Builder.setCreateParentNodes(boolean createParentNodes)
By default, TreeCache does not auto-create parent nodes for the cached path.
|
TreeCache.Builder |
TreeCache.Builder.setDataIsCompressed(boolean dataIsCompressed)
Sets whether or to decompress node data; default
false . |
TreeCache.Builder |
TreeCache.Builder.setExecutor(ExecutorService executorService)
Sets the executor to publish events; a default executor will be created if not specified.
|
TreeCache.Builder |
TreeCache.Builder.setExecutor(ThreadFactory threadFactory)
Sets the executor to publish events; a default executor will be created if not specified.
|
TreeCache.Builder |
TreeCache.Builder.setMaxDepth(int maxDepth)
Sets the maximum depth to explore/watch.
|
TreeCache.Builder |
TreeCache.Builder.setSelector(TreeCacheSelector selector)
By default,
DefaultTreeCacheSelector is used. |
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.