Class PathChildrenCacheEvent
java.lang.Object
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent
POJO that abstracts a change to a path
-
Constructor Details
-
PathChildrenCacheEvent
- Parameters:
type- event typedata- event data or null
-
-
Method Details
-
getType
- Returns:
- change type
-
getData
- Returns:
- the node's data
-
getInitialData
Special purpose method. When anPathChildrenCacheEvent.Type.INITIALIZEDevent is received, you can call this method to receive the initial state of the cache.- Returns:
- initial state of cache for
PathChildrenCacheEvent.Type.INITIALIZEDevents. Otherwise,null.
-
toString
-