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 voidaccept(VersionVisitor visitor)intgetDumpId()Returns a unique dump id for this object.intgetLength()byte[]getPayload()intgetVersion()voidreadContent(java.io.DataInput in)Read the content of this object from the stream.voidsetLength(int length)voidsetPayload(byte[] payload)voidsetVersion(int version)java.lang.StringtoString()voidwriteContent(java.io.DataOutput out)Write the content of this object to the stream.
-
-
-
Method Detail
-
getDumpId
public int getDumpId()
Description copied from interface:DumpableReturns a unique dump id for this object.
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOExceptionDescription copied from interface:DumpableWrite the content of this object to the stream.- Specified by:
writeContentin interfaceDumpable- Parameters:
out- output stream- Throws:
java.io.IOException- if an error occurs
-
readContent
public void readContent(java.io.DataInput in) throws java.io.IOExceptionDescription copied from interface:DumpableRead the content of this object from the stream.- Specified by:
readContentin 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:
acceptin interfaceVersionObject
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-