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