Class WatchedEvent


  • @Public
    public class WatchedEvent
    extends java.lang.Object
    A WatchedEvent represents a change on the ZooKeeper that a Watcher is able to respond to. The WatchedEvent includes exactly what happened, the current state of the ZooKeeper, and the path of the znode that was involved in the event.
    • Constructor Detail

      • WatchedEvent

        public WatchedEvent​(WatcherEvent eventMessage)
        Convert a WatcherEvent sent over the wire into a full-fledged WatcherEvent
    • Method Detail

      • getPath

        public java.lang.String getPath()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getWrapper

        public WatcherEvent getWrapper()
        Convert WatchedEvent to type that can be sent over network