Interface ZNode<T>

  • All Known Implementing Classes:
    ZNodeImpl

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

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T model()
      The node's current model
      static <T> java.util.concurrent.CompletionStage<T> model​(AsyncStage<ZNode<T>> from)
      Utility that modifies an async stage of a znode into an async stage of a model
      static <T> java.util.concurrent.CompletionStage<java.util.List<T>> models​(AsyncStage<java.util.List<ZNode<T>>> from)
      Utility that modifies an async stage of znodes into an async stage of models
      ZPath path()
      The path of the node
      org.apache.zookeeper.data.Stat stat()
      The node's last known stat if available
    • Method Detail

      • 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> java.util.concurrent.CompletionStage<java.util.List<T>> models​(AsyncStage<java.util.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> java.util.concurrent.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