Package org.apache.curator.framework.api
Interface CuratorEvent
public interface CuratorEvent
A 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 SummaryModifier and TypeMethodDescriptionList<org.apache.zookeeper.data.ACL> byte[]getData()getName()getPath()intorg.apache.zookeeper.data.StatgetStat()getType()check here first - this value determines the type of event and which methods will have valid valuesorg.apache.zookeeper.WatchedEventIfgetType()returnsCuratorEventType.WATCHEDthis will return the WatchedEvent
- 
Method Details- 
getTypeCuratorEventType getType()check here first - this value determines the type of event and which methods will have valid values- Returns:
- event type
 
- 
getResultCodeint getResultCode()- Returns:
- "rc" from async callbacks
 
- 
getPathString getPath()- Returns:
- the path
 
- 
getContextObject getContext()- Returns:
- the context object passed to Backgroundable.inBackground(Object)
 
- 
getStatorg.apache.zookeeper.data.Stat getStat()- Returns:
- any stat
 
- 
getDatabyte[] getData()- Returns:
- any data
 
- 
getNameString getName()- Returns:
- any name
 
- 
getChildren- Returns:
- any children
 
- 
getACLListList<org.apache.zookeeper.data.ACL> getACLList()- Returns:
- any ACL list or null
 
- 
getOpResultsList<CuratorTransactionResult> getOpResults()- Returns:
- any operation results or null
 
- 
getWatchedEventorg.apache.zookeeper.WatchedEvent getWatchedEvent()IfgetType()returnsCuratorEventType.WATCHEDthis will return the WatchedEvent- Returns:
- any WatchedEvent
 
 
-