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 void
accept(VersionVisitor visitor)
int[]
getAcceptedVersions()
int
getDumpId()
Returns a unique dump id for this object.java.lang.String
getIdentifier()
void
readContent(java.io.DataInput in)
Read the content of this object from the stream.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
-
getIdentifier
public java.lang.String getIdentifier()
-
getAcceptedVersions
public int[] getAcceptedVersions()
-
accept
public void accept(VersionVisitor visitor)
- Specified by:
accept
in interfaceVersionObject
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-