public class WatchedEvent extends Object
| Constructor and Description | 
|---|
| WatchedEvent(Watcher.Event.EventType eventType,
            Watcher.Event.KeeperState keeperState,
            String path)Create a WatchedEvent with specified type, state and path | 
| WatchedEvent(org.apache.zookeeper.proto.WatcherEvent eventMessage)Convert a WatcherEvent sent over the wire into a full-fledged WatcherEvent | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getPath() | 
| Watcher.Event.KeeperState | getState() | 
| Watcher.Event.EventType | getType() | 
| org.apache.zookeeper.proto.WatcherEvent | getWrapper()Convert WatchedEvent to type that can be sent over network | 
| String | toString() | 
public WatchedEvent(Watcher.Event.EventType eventType, Watcher.Event.KeeperState keeperState, String path)
public WatchedEvent(org.apache.zookeeper.proto.WatcherEvent eventMessage)
public Watcher.Event.KeeperState getState()
public Watcher.Event.EventType getType()
public String getPath()
public org.apache.zookeeper.proto.WatcherEvent getWrapper()
Copyright © 2016 The Apache Software Foundation