Package com.swiftmq.tools.versioning
Class Versioned
- java.lang.Object
-
- com.swiftmq.tools.versioning.Versioned
-
- All Implemented Interfaces:
Dumpable
,VersionObject
public class Versioned extends java.lang.Object implements VersionObject, Dumpable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(VersionVisitor visitor)
int
getDumpId()
Returns a unique dump id for this object.int
getLength()
byte[]
getPayload()
int
getVersion()
void
readContent(java.io.DataInput in)
Read the content of this object from the stream.void
setLength(int length)
void
setPayload(byte[] payload)
void
setVersion(int version)
java.lang.String
toString()
void
writeContent(java.io.DataOutput out)
Write the content of this object to the stream.
-
-
-
Method Detail
-
getDumpId
public int getDumpId()
Description copied from interface:Dumpable
Returns a unique dump id for this object.
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
Description copied from interface:Dumpable
Write the content of this object to the stream.- Specified by:
writeContent
in interfaceDumpable
- Parameters:
out
- output stream- Throws:
java.io.IOException
- if an error occurs
-
readContent
public void readContent(java.io.DataInput in) throws java.io.IOException
Description copied from interface:Dumpable
Read the content of this object from the stream.- Specified by:
readContent
in interfaceDumpable
- Parameters:
in
- input stream- Throws:
java.io.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
public void accept(VersionVisitor visitor)
- Specified by:
accept
in interfaceVersionObject
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-