Uses of Class
org.apache.curator.framework.recipes.cache.TreeCache.Builder
-
Uses of TreeCache.Builder in org.apache.curator.framework.recipes.cache
Modifier and TypeMethodDescriptionTreeCache.Builder.disableZkWatches
(boolean disableZkWatches) By default, TreeCache createsZooKeeper
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.setCacheData
(boolean cacheData) Sets whether or not to cache byte data per node; defaulttrue
.TreeCache.Builder.setCreateParentNodes
(boolean createParentNodes) By default, TreeCache does not auto-create parent nodes for the cached path.TreeCache.Builder.setDataIsCompressed
(boolean dataIsCompressed) Sets whether or to decompress node data; defaultfalse
.TreeCache.Builder.setExecutor
(ExecutorService executorService) Sets the executor to publish events; a default executor will be created if not specified.TreeCache.Builder.setExecutor
(ThreadFactory threadFactory) Sets the executor to publish events; a default executor will be created if not specified.TreeCache.Builder.setMaxDepth
(int maxDepth) Sets the maximum depth to explore/watch.TreeCache.Builder.setSelector
(TreeCacheSelector selector) By default,DefaultTreeCacheSelector
is used.