Class QueueMsgReply
- java.lang.Object
-
- fr.dyade.aaa.agent.Notification
-
- fr.dyade.aaa.agent.CallbackNotification
-
- org.objectweb.joram.mom.notifications.AbstractNotification
-
- org.objectweb.joram.mom.notifications.AbstractReplyNot
-
- org.objectweb.joram.mom.notifications.QueueMsgReply
-
- All Implemented Interfaces:
Encodable,Serializable,Cloneable
public class QueueMsgReply extends AbstractReplyNot
AQueueMsgReplyinstance is used by a queue for replying to aReceiveRequestby sending a message to a client.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Vector<Message>messagesThe message sent by the queue.private static longserialVersionUIDdefine serialVersionUID for interoperability-
Fields inherited from class fr.dyade.aaa.agent.Notification
detachable, detached, persistent
-
Fields inherited from interface fr.dyade.aaa.common.encoding.Encodable
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
-
-
Constructor Summary
Constructors Constructor Description QueueMsgReply(ReceiveRequest req)Constructs aQueueMsgReplyinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(Message msg)Vector<Message>getMessages()Returns the message wrapped by this reply.intgetSize()StringBuildertoString(StringBuilder output)Appends a string image for this object to the StringBuilder parameter.-
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractReplyNot
getCorrelationId
-
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractNotification
decode, encode, getClientContext, getEncodedSize, setPersistent
-
Methods inherited from class fr.dyade.aaa.agent.CallbackNotification
done, failed, hasCallback, passCallback, setCountDownCallback
-
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, getContext, getDeadNotificationAgentId, getEncodableClassId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueueMsgReply
public QueueMsgReply(ReceiveRequest req)
Constructs aQueueMsgReplyinstance.- Parameters:
req- TheReceiveRequestactually replied.
-
-
Method Detail
-
getSize
public int getSize()
-
addMessage
public void addMessage(Message msg)
-
toString
public StringBuilder toString(StringBuilder output)
Appends a string image for this object to the StringBuilder parameter.- Overrides:
toStringin classAbstractReplyNot- Parameters:
output- buffer to fill in- Returns:
outputbuffer is returned
-
-