Class VersionedData


  • public class VersionedData
    extends Object
    Immutable representation of binary data with version.
    • Constructor Detail

      • VersionedData

        public VersionedData​(int version,
                             byte[] data,
                             org.apache.zookeeper.CreateMode mode,
                             String owner)
        Constructor.
        Parameters:
        version - version of the data, or -1 if unknown
        data - binary data, or null.
        mode - create mode
        owner - symbolic identifier of data owner / creator, or null.
    • Method Detail

      • getVersion

        public int getVersion()
      • getData

        public byte[] getData()
      • getMode

        public org.apache.zookeeper.CreateMode getMode()
      • getOwner

        public String getOwner()