Package com.swiftmq.tools.versioning
Class Versioned
java.lang.Object
com.swiftmq.tools.versioning.Versioned
- All Implemented Interfaces:
Dumpable
,VersionObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(VersionVisitor visitor) int
Returns a unique dump id for this object.int
byte[]
int
void
readContent
(DataInput in) Read the content of this object from the stream.void
setLength
(int length) void
setPayload
(byte[] payload) void
setVersion
(int version) toString()
void
writeContent
(DataOutput out) Write the content of this object to the stream.
-
Constructor Details
-
Versioned
public Versioned(int version, byte[] newpayload, int length) -
Versioned
public Versioned()
-
-
Method Details
-
getDumpId
public int getDumpId()Description copied from interface:Dumpable
Returns a unique dump id for this object. -
writeContent
Description copied from interface:Dumpable
Write the content of this object to the stream.- Specified by:
writeContent
in interfaceDumpable
- Parameters:
out
- output stream- Throws:
IOException
- if an error occurs
-
readContent
Description copied from interface:Dumpable
Read the content of this object from the stream.- Specified by:
readContent
in interfaceDumpable
- Parameters:
in
- input stream- Throws:
IOException
- if an error occurs
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int version) -
getPayload
public byte[] getPayload() -
setPayload
public void setPayload(byte[] payload) -
getLength
public int getLength() -
setLength
public void setLength(int length) -
accept
- Specified by:
accept
in interfaceVersionObject
-
toString
-