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 Summary
 List<org.apache.zookeeper.data.ACL> getACLList()
           
 List<String> getChildren()
           
 Object getContext()
           
 byte[] getData()
           
 String getName()
           
 String getPath()
           
 int getResultCode()
           
 org.apache.zookeeper.data.Stat getStat()
           
 CuratorEventType getType()
          check here first - this value determines the type of event and which methods will have valid values
 org.apache.zookeeper.WatchedEvent getWatchedEvent()
          If getType() returns CuratorEventType.WATCHED this 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

String getPath()
Returns:
the path

getContext

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

String getName()
Returns:
any name

getChildren

List<String> getChildren()
Returns:
any children

getACLList

List<org.apache.zookeeper.data.ACL> getACLList()
Returns:
any ACL list or null

getWatchedEvent

org.apache.zookeeper.WatchedEvent getWatchedEvent()
If getType() returns CuratorEventType.WATCHED this will return the WatchedEvent

Returns:
any WatchedEvent


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.