Interface ZNode<T>

All Known Implementing Classes:
ZNodeImpl

public interface ZNode<T>
Abstracts a ZooKeeper node
  • Method Summary

    Modifier and Type
    Method
    Description
    The node's current model
    static <T> CompletionStage<T>
    Utility that modifies an async stage of a znode into an async stage of a model
    static <T> CompletionStage<List<T>>
    Utility that modifies an async stage of znodes into an async stage of models
    The path of the node
    org.apache.zookeeper.data.Stat
    The node's last known stat if available
  • Method Details

    • path

      ZPath path()
      The path of the node
      Returns:
      path
    • stat

      org.apache.zookeeper.data.Stat stat()
      The node's last known stat if available
      Returns:
      stat
    • model

      T model()
      The node's current model
      Returns:
      model
    • models

      static <T> CompletionStage<List<T>> models(AsyncStage<List<ZNode<T>>> from)
      Utility that modifies an async stage of znodes into an async stage of models
      Parameters:
      from - original stage
      Returns:
      stage of models
    • model

      static <T> CompletionStage<T> model(AsyncStage<ZNode<T>> from)
      Utility that modifies an async stage of a znode into an async stage of a model
      Parameters:
      from - original stage
      Returns:
      stage of a model