public class VersionedData extends Object implements MapWriter
MapWriter.EntryWriter
Constructor and Description |
---|
VersionedData(int version,
byte[] data,
org.apache.zookeeper.CreateMode mode,
String owner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
byte[] |
getData() |
org.apache.zookeeper.CreateMode |
getMode() |
String |
getOwner() |
int |
getVersion() |
int |
hashCode() |
String |
toString() |
void |
writeMap(MapWriter.EntryWriter ew) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
public VersionedData(int version, byte[] data, org.apache.zookeeper.CreateMode mode, String owner)
version
- version of the data, or -1 if unknowndata
- binary data, or null.mode
- create modeowner
- symbolic identifier of data owner / creator, or null.public int getVersion()
public byte[] getData()
public org.apache.zookeeper.CreateMode getMode()
public String getOwner()
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.