Package com.swiftmq.tools.requestreply
Class GenericRequest
- java.lang.Object
-
- com.swiftmq.tools.requestreply.Request
-
- com.swiftmq.tools.requestreply.GenericRequest
-
- All Implemented Interfaces:
Dumpable,java.io.Serializable
public class GenericRequest extends Request
- Version:
- 1.0
- Author:
- Andreas Mueller, IIT GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.swiftmq.tools.requestreply.Request
_sem, NO_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description GenericRequest(int dispatchId, boolean replyRequired, java.io.Serializable payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RequestVisitor visitor)protected ReplycreateReplyInstance()java.io.SerializablegetPayload()voidreadContent(java.io.DataInput in)Read the content of this object from the stream.voidsetPayload(java.io.Serializable payload)java.lang.StringtoString()voidwriteContent(java.io.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
-
-
-
-
Method Detail
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOExceptionWrite the content of this object to the stream.- Specified by:
writeContentin interfaceDumpable- Overrides:
writeContentin classRequest- 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- Overrides:
readContentin classRequest- Parameters:
in- input stream- Throws:
java.io.IOException- if an error occurs
-
createReplyInstance
protected Reply createReplyInstance()
- Specified by:
createReplyInstancein classRequest
-
getPayload
public java.io.Serializable getPayload()
- Returns:
-
setPayload
public void setPayload(java.io.Serializable payload)
- Parameters:
payload-
-
accept
public void accept(RequestVisitor visitor)
-
-