Class Reply

java.lang.Object
com.swiftmq.tools.requestreply.Reply
All Implemented Interfaces:
Dumpable, Serializable
Direct Known Subclasses:
AuthReply, CommandReply, ConnectReply, GenericReply, ProtocolReply, ReplyNE, SMQPVersionReply

public class Reply extends Object implements Dumpable, Serializable
A Reply is a wrapper class for data (the Result) sending back from a communication point to a Request, identified by a RequestNumber. The Reply could also be an exception. In that case the ok-flag is not set and the exception contains the exception.
Author:
Andreas Mueller, IIT GmbH
See Also:
  • Constructor Details

    • Reply

      public Reply()
  • Method Details

    • getDumpId

      public int getDumpId()
      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
      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
      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
    • isOk

      public boolean isOk()
    • setOk

      public void setOk(boolean ok)
    • isTimeout

      public boolean isTimeout()
    • setTimeout

      public void setTimeout(boolean timeout)
    • getException

      public Exception getException()
    • setException

      public void setException(Exception exception)
    • send

      public void send()
    • toString

      public String toString()
      Overrides:
      toString in class Object