@InterfaceAudience.Public
public class WatchedEvent
extends java.lang.Object
Constructor and Description |
---|
WatchedEvent(Watcher.Event.EventType eventType,
Watcher.Event.KeeperState keeperState,
java.lang.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 |
---|---|
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.Object
public org.apache.zookeeper.proto.WatcherEvent getWrapper()
Copyright © 2018 The Apache Software Foundation