| Package | Description |
|---|---|
| org.apache.curator.framework.recipes.cache |
| Modifier and Type | Method and Description |
|---|---|
static TreeCache.Builder |
TreeCache.newBuilder(org.apache.curator.framework.CuratorFramework client,
String path)
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(org.apache.curator.utils.CloseableExecutorService executorService)
Sets the executor to publish events; a default executor will be created if not specified.
|
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–2016 The Apache Software Foundation. All rights reserved.