Class DefaultTreeCacheSelector
java.lang.Object
org.apache.curator.framework.recipes.cache.DefaultTreeCacheSelector
- All Implemented Interfaces:
TreeCacheSelector
Default TreeCache selector - returns true for all methods
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptChild
(String fullPath) Return true if this node should be returned from the cacheboolean
traverseChildren
(String fullPath) Return true if children of this path should be cached.
-
Constructor Details
-
DefaultTreeCacheSelector
public DefaultTreeCacheSelector()
-
-
Method Details
-
traverseChildren
Description copied from interface:TreeCacheSelector
Return true if children of this path should be cached. i.e. if false is returned, this node is not queried to determine if it has children or not- Specified by:
traverseChildren
in interfaceTreeCacheSelector
- Parameters:
fullPath
- full path of the ZNode- Returns:
- true/false
-
acceptChild
Description copied from interface:TreeCacheSelector
Return true if this node should be returned from the cache- Specified by:
acceptChild
in interfaceTreeCacheSelector
- Parameters:
fullPath
- full path of the ZNode- Returns:
- true/false
-