public class MockTopic extends MockDestination implements javax.jms.Topic
Topic.| Constructor and Description |
|---|
MockTopic(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(javax.jms.Message message)
Adds a message to this
Topic that will
be propagated to the corresponding receivers. |
java.lang.String |
getTopicName() |
acknowledgeMessage, addCurrentMessage, addReceivedMessage, addSession, clear, getCurrentMessageList, getMatchingMessage, getMessage, getReceivedMessageList, isEmpty, loadMessage, removeSession, reset, sessionSetpublic java.lang.String getTopicName()
throws javax.jms.JMSException
getTopicName in interface javax.jms.Topicjavax.jms.JMSExceptionpublic void addMessage(javax.jms.Message message)
throws javax.jms.JMSException
Topic that will
be propagated to the corresponding receivers.addMessage in class MockDestinationmessage - the messagejavax.jms.JMSException - os case the message can not be addedCopyright © 2003-2018. All Rights Reserved.