Class DefaultTreeCacheSelector

  • All Implemented Interfaces:
    TreeCacheSelector

    public class DefaultTreeCacheSelector
    extends java.lang.Object
    implements TreeCacheSelector
    Default TreeCache selector - returns true for all methods
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptChild​(java.lang.String fullPath)
      Return true if this node should be returned from the cache
      boolean traverseChildren​(java.lang.String fullPath)
      Return true if children of this path should be cached.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultTreeCacheSelector

        public DefaultTreeCacheSelector()
    • Method Detail

      • traverseChildren

        public boolean traverseChildren​(java.lang.String fullPath)
        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 interface TreeCacheSelector
        Parameters:
        fullPath - full path of the ZNode
        Returns:
        true/false
      • acceptChild

        public boolean acceptChild​(java.lang.String fullPath)
        Description copied from interface: TreeCacheSelector
        Return true if this node should be returned from the cache
        Specified by:
        acceptChild in interface TreeCacheSelector
        Parameters:
        fullPath - full path of the ZNode
        Returns:
        true/false