Class ChildData<T>
- java.lang.Object
-
- org.apache.camel.component.zookeepermaster.group.internal.ChildData<T>
-
- All Implemented Interfaces:
Comparable<ChildData>
public class ChildData<T> extends Object implements Comparable<ChildData>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ChildData rhs)booleanequals(Object o)byte[]getData()Returns the node data for this child when the cache mode is set to cache data.TgetNode()Returns the node for this group member.StringgetPath()Returns the full path of the this childorg.apache.zookeeper.data.StatgetStat()Returns the stat data for this childinthashCode()StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(ChildData rhs)
- Specified by:
compareToin interfaceComparable<T>
-
getPath
public String getPath()
Returns the full path of the this child- Returns:
- full path
-
getStat
public org.apache.zookeeper.data.Stat getStat()
Returns the stat data for this child- Returns:
- stat or null
-
getData
public byte[] getData()
Returns the node data for this child when the cache mode is set to cache data.
NOTE: the byte array returned is the raw reference of this instance's field. If you change the values in the array any other callers to this method will see the change.
- Returns:
- node data or null
-
getNode
public T getNode()
Returns the node for this group member.
- Returns:
- the node or null
-
-