Package org.apache.curator.framework.api
Interface CuratorEvent
-
public interface CuratorEventA super set of all the various Zookeeper events/background methods. IMPORTANT: the methods only return values as specified by the operation that generated them. Many methods will return null
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<org.apache.zookeeper.data.ACL>getACLList()java.util.List<java.lang.String>getChildren()java.lang.ObjectgetContext()byte[]getData()java.lang.StringgetName()java.util.List<CuratorTransactionResult>getOpResults()java.lang.StringgetPath()intgetResultCode()org.apache.zookeeper.data.StatgetStat()CuratorEventTypegetType()check here first - this value determines the type of event and which methods will have valid valuesorg.apache.zookeeper.WatchedEventgetWatchedEvent()IfgetType()returnsCuratorEventType.WATCHEDthis will return the WatchedEvent
-
-
-
Method Detail
-
getType
CuratorEventType getType()
check here first - this value determines the type of event and which methods will have valid values- Returns:
- event type
-
getResultCode
int getResultCode()
- Returns:
- "rc" from async callbacks
-
getPath
java.lang.String getPath()
- Returns:
- the path
-
getContext
java.lang.Object getContext()
- Returns:
- the context object passed to
Backgroundable.inBackground(Object)
-
getStat
org.apache.zookeeper.data.Stat getStat()
- Returns:
- any stat
-
getData
byte[] getData()
- Returns:
- any data
-
getName
java.lang.String getName()
- Returns:
- any name
-
getChildren
java.util.List<java.lang.String> getChildren()
- Returns:
- any children
-
getACLList
java.util.List<org.apache.zookeeper.data.ACL> getACLList()
- Returns:
- any ACL list or null
-
getOpResults
java.util.List<CuratorTransactionResult> getOpResults()
- Returns:
- any operation results or null
-
getWatchedEvent
org.apache.zookeeper.WatchedEvent getWatchedEvent()
IfgetType()returnsCuratorEventType.WATCHEDthis will return the WatchedEvent- Returns:
- any WatchedEvent
-
-