Package com.swiftmq.tools.versioning
Class VersionNotification
- java.lang.Object
-
- com.swiftmq.tools.versioning.VersionNotification
-
- All Implemented Interfaces:
Dumpable,VersionObject
public class VersionNotification extends java.lang.Object implements VersionObject, Dumpable
-
-
Constructor Summary
Constructors Constructor Description VersionNotification()VersionNotification(java.lang.String identifier, int[] acceptedVersions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VersionVisitor visitor)int[]getAcceptedVersions()intgetDumpId()Returns a unique dump id for this object.java.lang.StringgetIdentifier()voidreadContent(java.io.DataInput in)Read the content of this object from the stream.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
-
getIdentifier
public java.lang.String getIdentifier()
-
getAcceptedVersions
public int[] getAcceptedVersions()
-
accept
public void accept(VersionVisitor visitor)
- Specified by:
acceptin interfaceVersionObject
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-