public class QueueMsgReply extends AbstractReplyNot
QueueMsgReply
instance is used by a queue for replying to a
ReceiveRequest
by sending a message to a client.Modifier and Type | Field and Description |
---|---|
private Vector |
messages
The message sent by the queue.
|
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
detachable, detached, persistent
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
Constructor and Description |
---|
QueueMsgReply(ReceiveRequest req)
Constructs a
QueueMsgReply instance. |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(Message msg) |
Vector |
getMessages()
Returns the message wrapped by this reply.
|
int |
getSize() |
StringBuffer |
toString(StringBuffer output)
Appends a string image for this object to the StringBuffer parameter.
|
getCorrelationId
decode, encode, getClientContext, getEncodedSize, setPersistent
done, failed, hasCallback, passCallback, setCountDownCallback
clone, getContext, getDeadNotificationAgentId, getEncodableClassId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
private static final long serialVersionUID
private Vector messages
public QueueMsgReply(ReceiveRequest req)
QueueMsgReply
instance.req
- The ReceiveRequest
actually replied.public Vector getMessages()
public int getSize()
public void addMessage(Message msg)
public StringBuffer toString(StringBuffer output)
toString
in class AbstractReplyNot
output
- buffer to fill inoutput
buffer is returnedCopyright © 2020 ScalAgent D.T.. All rights reserved.