Class ChildData
java.lang.Object
org.apache.curator.framework.recipes.cache.ChildData
- All Implemented Interfaces:
Comparable<ChildData>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Note: this class has a natural ordering that is inconsistent with equals.boolean
byte[]
getData()
Returns the node data for this child when the cache mode is set to cache data.getPath()
Returns the full path of the this childorg.apache.zookeeper.data.Stat
getStat()
Returns the stat data for this childint
hashCode()
toString()
-
Constructor Details
-
ChildData
-
-
Method Details
-
compareTo
Note: this class has a natural ordering that is inconsistent with equals.- Specified by:
compareTo
in interfaceComparable<ChildData>
-
equals
-
hashCode
public int hashCode() -
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
-
toString
-