@InterfaceAudience.Public 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(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()  | 
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(WatcherEvent eventMessage)
public Watcher.Event.KeeperState getState()
public Watcher.Event.EventType getType()
public String getPath()
public WatcherEvent getWrapper()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.