Package com.swiftmq.tools.requestreply
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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns a unique dump id for this object.boolean
isOk()
boolean
void
readContent
(DataInput in) Read the content of this object from the stream.void
send()
void
setException
(Exception exception) void
setOk
(boolean ok) void
setTimeout
(boolean timeout) toString()
void
writeContent
(DataOutput out) Write the content of this object to the stream.
-
Constructor Details
-
Reply
public Reply()
-
-
Method Details
-
getDumpId
public int getDumpId()Returns a unique dump id for this object. -
writeContent
Write the content of this object to the stream.- Specified by:
writeContent
in interfaceDumpable
- Parameters:
out
- output stream- Throws:
IOException
- if an error occurs
-
readContent
Read the content of this object from the stream.- Specified by:
readContent
in interfaceDumpable
- 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
-
setException
-
send
public void send() -
toString
-