@Public public class WatchedEvent extends java.lang.Object
| Constructor | Description |
|---|---|
WatchedEvent(org.apache.zookeeper.proto.WatcherEvent eventMessage) |
Convert a WatcherEvent sent over the wire into a full-fledged WatcherEvent
|
WatchedEvent(Watcher.Event.EventType eventType,
Watcher.Event.KeeperState keeperState,
java.lang.String path) |
Create a WatchedEvent with specified type, state and path
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.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
|
java.lang.String |
toString() |
public WatchedEvent(Watcher.Event.EventType eventType, Watcher.Event.KeeperState keeperState, java.lang.String path)
public WatchedEvent(org.apache.zookeeper.proto.WatcherEvent eventMessage)
public Watcher.Event.KeeperState getState()
public Watcher.Event.EventType getType()
public java.lang.String getPath()
public java.lang.String toString()
toString in class java.lang.Objectpublic org.apache.zookeeper.proto.WatcherEvent getWrapper()
Copyright © 2018 The Apache Software Foundation