org.apache.curator.framework.recipes.cache
Class PathChildrenCacheEvent
java.lang.Object
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent
public class PathChildrenCacheEvent
- extends Object
POJO that abstracts a change to a path
PathChildrenCacheEvent
public PathChildrenCacheEvent(PathChildrenCacheEvent.Type type,
ChildData data)
- Parameters:
type - event typedata - event data or null
getType
public PathChildrenCacheEvent.Type getType()
- Returns:
- change type
getData
public ChildData getData()
- Returns:
- the node's data
getInitialData
public List<ChildData> getInitialData()
- Special purpose method. When an
PathChildrenCacheEvent.Type.INITIALIZED
event is received, you can call this method to
receive the initial state of the cache.
- Returns:
- initial state of cache for
PathChildrenCacheEvent.Type.INITIALIZED events. Otherwise, null.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.