Package org.apache.zookeeper
Class WatchedEvent
- java.lang.Object
- 
- org.apache.zookeeper.WatchedEvent
 
- 
 @Public public class WatchedEvent extends 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 SummaryConstructors Constructor Description WatchedEvent(WatcherEvent eventMessage)Convert a WatcherEvent sent over the wire into a full-fledged WatcherEventWatchedEvent(Watcher.Event.EventType eventType, Watcher.Event.KeeperState keeperState, String path)Create a WatchedEvent with specified type, state and path
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPath()Watcher.Event.KeeperStategetState()Watcher.Event.EventTypegetType()WatcherEventgetWrapper()Convert WatchedEvent to type that can be sent over networkStringtoString()
 
- 
- 
- 
Constructor Detail- 
WatchedEventpublic WatchedEvent(Watcher.Event.EventType eventType, Watcher.Event.KeeperState keeperState, String path) Create a WatchedEvent with specified type, state and path
 - 
WatchedEventpublic WatchedEvent(WatcherEvent eventMessage) Convert a WatcherEvent sent over the wire into a full-fledged WatcherEvent
 
- 
 - 
Method Detail- 
getStatepublic Watcher.Event.KeeperState getState() 
 - 
getTypepublic Watcher.Event.EventType getType() 
 - 
getPathpublic String getPath() 
 - 
getWrapperpublic WatcherEvent getWrapper() Convert WatchedEvent to type that can be sent over network
 
- 
 
-