Class DefaultTreeCacheSelector
- java.lang.Object
-
- org.apache.curator.framework.recipes.cache.DefaultTreeCacheSelector
-
- All Implemented Interfaces:
TreeCacheSelector
public class DefaultTreeCacheSelector extends java.lang.Object implements TreeCacheSelector
Default TreeCache selector - returns true for all methods
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeCacheSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptChild(java.lang.String fullPath)Return true if this node should be returned from the cachebooleantraverseChildren(java.lang.String fullPath)Return true if children of this path should be cached.
-
-
-
Method Detail
-
traverseChildren
public boolean traverseChildren(java.lang.String fullPath)
Description copied from interface:TreeCacheSelectorReturn 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:
traverseChildrenin interfaceTreeCacheSelector- Parameters:
fullPath- full path of the ZNode- Returns:
- true/false
-
acceptChild
public boolean acceptChild(java.lang.String fullPath)
Description copied from interface:TreeCacheSelectorReturn true if this node should be returned from the cache- Specified by:
acceptChildin interfaceTreeCacheSelector- Parameters:
fullPath- full path of the ZNode- Returns:
- true/false
-
-