Class VersionNotification

java.lang.Object
com.swiftmq.tools.versioning.VersionNotification
All Implemented Interfaces:
Dumpable, VersionObject

public class VersionNotification extends Object implements VersionObject, Dumpable
  • Constructor Details

    • VersionNotification

      public VersionNotification(String identifier, int[] acceptedVersions)
    • VersionNotification

      public VersionNotification()
  • Method Details

    • getDumpId

      public int getDumpId()
      Description copied from interface: Dumpable
      Returns a unique dump id for this object.
      Specified by:
      getDumpId in interface Dumpable
      Returns:
      unique dump id
    • writeContent

      public void writeContent(DataOutput out) throws IOException
      Description copied from interface: Dumpable
      Write the content of this object to the stream.
      Specified by:
      writeContent in interface Dumpable
      Parameters:
      out - output stream
      Throws:
      IOException - if an error occurs
    • readContent

      public void readContent(DataInput in) throws IOException
      Description copied from interface: Dumpable
      Read the content of this object from the stream.
      Specified by:
      readContent in interface Dumpable
      Parameters:
      in - input stream
      Throws:
      IOException - if an error occurs
    • getIdentifier

      public String getIdentifier()
    • getAcceptedVersions

      public int[] getAcceptedVersions()
    • accept

      public void accept(VersionVisitor visitor)
      Specified by:
      accept in interface VersionObject
    • toString

      public String toString()
      Overrides:
      toString in class Object