Class VersionedData
- java.lang.Object
-
- org.apache.solr.client.solrj.cloud.autoscaling.VersionedData
-
public class VersionedData extends Object
Immutable representation of binary data with version.
-
-
Constructor Summary
Constructors Constructor Description VersionedData(int version, byte[] data, org.apache.zookeeper.CreateMode mode, String owner)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
org.apache.zookeeper.CreateMode
getMode()
String
getOwner()
int
getVersion()
-
-
-
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 unknowndata
- binary data, or null.mode
- create modeowner
- 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()
-
-