Class ZNodeImpl<T>

  • All Implemented Interfaces:
    ZNode<T>

    public class ZNodeImpl<T>
    extends java.lang.Object
    implements ZNode<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      ZNodeImpl​(ZPath path, org.apache.zookeeper.data.Stat stat, T model)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T model()
      The node's current model
      ZPath path()
      The path of the node
      org.apache.zookeeper.data.Stat stat()
      The node's last known stat if available
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZNodeImpl

        public ZNodeImpl​(ZPath path,
                         org.apache.zookeeper.data.Stat stat,
                         T model)
    • Method Detail

      • path

        public ZPath path()
        Description copied from interface: ZNode
        The path of the node
        Specified by:
        path in interface ZNode<T>
        Returns:
        path
      • stat

        public org.apache.zookeeper.data.Stat stat()
        Description copied from interface: ZNode
        The node's last known stat if available
        Specified by:
        stat in interface ZNode<T>
        Returns:
        stat
      • model

        public T model()
        Description copied from interface: ZNode
        The node's current model
        Specified by:
        model in interface ZNode<T>
        Returns:
        model