public class MockQueue extends MockDestination implements javax.jms.Queue
Queue.| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(javax.jms.Message message)
Adds a message to this
Queue that will
be propagated to the corresponding receiver. |
String |
getQueueName() |
acknowledgeMessage, addCurrentMessage, addReceivedMessage, addSession, clear, getCurrentMessageList, getMatchingMessage, getMessage, getReceivedMessageList, isEmpty, loadMessage, removeSession, reset, sessionSetpublic MockQueue(String name)
public String getQueueName() throws javax.jms.JMSException
getQueueName in interface javax.jms.Queuejavax.jms.JMSExceptionpublic void addMessage(javax.jms.Message message)
throws javax.jms.JMSException
Queue that will
be propagated to the corresponding receiver. Only one
receiver will get the message. The order is not
predictable.addMessage in class MockDestinationmessage - the messagejavax.jms.JMSException - os case the message can not be addedCopyright © 2003–2020. All rights reserved.