Package com.swiftmq.tools.requestreply
Class Reply
- java.lang.Object
-
- com.swiftmq.tools.requestreply.Reply
-
- All Implemented Interfaces:
Dumpable,java.io.Serializable
- Direct Known Subclasses:
AuthReply,AuthReply,CommandReply,CommandReply,ConnectReply,ConnectReply,GenericReply,ProtocolReply,ReplyNE,SMQPVersionReply
public class Reply extends java.lang.Object implements Dumpable, java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Reply()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDumpId()Returns a unique dump id for this object.java.lang.ExceptiongetException()booleanisOk()booleanisTimeout()voidreadContent(java.io.DataInput in)Read the content of this object from the stream.voidsend()voidsetException(java.lang.Exception exception)voidsetOk(boolean ok)voidsetTimeout(boolean timeout)java.lang.StringtoString()voidwriteContent(java.io.DataOutput out)Write the content of this object to the stream.
-
-
-
Method Detail
-
getDumpId
public int getDumpId()
Returns a unique dump id for this object.
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOExceptionWrite 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.IOExceptionRead the content of this object from the stream.- Specified by:
readContentin interfaceDumpable- Parameters:
in- input stream- Throws:
java.io.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 java.lang.Exception getException()
-
setException
public void setException(java.lang.Exception exception)
-
send
public void send()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-