Interface Curator.DirectoryCache

Enclosing class:
Curator

public static interface Curator.DirectoryCache
A listenable cache of all the immediate children of a curator path. This wraps the Curator PathChildrenCache recipe to allow us to mock it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addListener(org.apache.curator.framework.recipes.cache.PathChildrenCacheListener listener)
     
    void
     
    List<org.apache.curator.framework.recipes.cache.ChildData>
     
    org.apache.curator.framework.recipes.cache.ChildData
    getCurrentData(com.yahoo.path.Path absolutePath)
    Returns the ChildData, or null if it does not exist.
    void
     
  • Method Details

    • start

      void start()
    • addListener

      void addListener(org.apache.curator.framework.recipes.cache.PathChildrenCacheListener listener)
    • getCurrentData

      List<org.apache.curator.framework.recipes.cache.ChildData> getCurrentData()
    • getCurrentData

      org.apache.curator.framework.recipes.cache.ChildData getCurrentData(com.yahoo.path.Path absolutePath)
      Returns the ChildData, or null if it does not exist.
    • close

      void close()