Class DefaultTreeCacheSelector

java.lang.Object
org.apache.curator.framework.recipes.cache.DefaultTreeCacheSelector
All Implemented Interfaces:
TreeCacheSelector

public class DefaultTreeCacheSelector extends Object implements TreeCacheSelector
Default TreeCache selector - returns true for all methods
  • Constructor Details

    • DefaultTreeCacheSelector

      public DefaultTreeCacheSelector()
  • Method Details

    • traverseChildren

      public boolean traverseChildren(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(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