Package com.swiftmq.tools.requestreply
Class GenericRequest
java.lang.Object
com.swiftmq.tools.requestreply.Request
com.swiftmq.tools.requestreply.GenericRequest
- All Implemented Interfaces:
Dumpable
,Serializable
- Version:
- 1.0
- Author:
- Andreas Mueller, IIT GmbH
- See Also:
-
Field Summary
Fields inherited from class com.swiftmq.tools.requestreply.Request
_sem, NO_TIMEOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RequestVisitor visitor) protected Reply
void
readContent
(DataInput in) Read the content of this object from the stream.void
setPayload
(Serializable payload) toString()
void
writeContent
(DataOutput out) Write the content of this object to the stream.Methods inherited from class com.swiftmq.tools.requestreply.Request
createReply, getConnectionId, getCorrelationId, getDispatchId, getDumpId, getValidator, isCancelledByValidator, isDoRetry, isReplyRequired, isWasRetry, setCancelledByValidator, setConnectionId, setCorrelationId, setDispatchId, setDoRetry, setReplyRequired, setValidator
-
Constructor Details
-
GenericRequest
- Parameters:
dispatchId
-replyRequired
-payload
-
-
-
Method Details
-
writeContent
Write the content of this object to the stream.- Specified by:
writeContent
in interfaceDumpable
- Overrides:
writeContent
in classRequest
- 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
- Overrides:
readContent
in classRequest
- Parameters:
in
- input stream- Throws:
IOException
- if an error occurs
-
createReplyInstance
- Specified by:
createReplyInstance
in classRequest
-
getPayload
- Returns:
-
setPayload
- Parameters:
payload
-
-
accept
-
toString
-