Interface ModeledCache<T>


public interface ModeledCache<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the modeled current set of children at the given path, mapped by child name.
    Return the modeled current data for the given path.
  • Method Details

    • currentData

      Optional<ZNode<T>> currentData(ZPath path)
      Return the modeled current data for the given path. There are no guarantees of accuracy. This is merely the most recent view of the data. If there is no node at the given path, Optional.empty() is returned.
      Parameters:
      path - path to the node to check
      Returns:
      data if the node is alive, or empty
    • currentChildren

      Map<ZPath,ZNode<T>> currentChildren(ZPath path)
      Return the modeled current set of children at the given path, mapped by child name. There are no guarantees of accuracy; this is merely the most recent view of the data.
      Parameters:
      path - path to the node to check
      Returns:
      a possibly-empty map of children if the node is alive