|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockejb.jms.MockDestination org.mockejb.jms.MockTopic
Topic
implementation.
Topic
Constructor Summary | |
MockTopic(java.lang.String name)
Creates MockTopic with the specified name
name |
Method Summary | |
void |
addMessageListener(javax.jms.MessageListener listener)
|
void |
clear()
Removes all messages from this destination. |
void |
dispatch(javax.jms.Message msg)
|
javax.jms.Message |
getMessageAt(int index)
Retrieves message at index index . |
java.util.List |
getMessages()
Retruns ordered List with all messages sent to
this destination. |
java.lang.String |
getName()
Returns this destination's name. |
java.lang.String |
getTopicName()
Returns topic name. |
int |
size()
Returns number of messages in this destination. |
java.lang.String |
toString()
Returns string representation of this destination. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.Topic |
toString |
Constructor Detail |
public MockTopic(java.lang.String name)
MockTopic
with the specified name
name
name
- Method Detail |
public java.lang.String getTopicName() throws javax.jms.JMSException
getTopicName
in interface javax.jms.Topic
javax.jms.JMSException
Topic.getTopicName()
public void addMessageListener(javax.jms.MessageListener listener)
public void dispatch(javax.jms.Message msg)
public java.lang.String getName()
public void clear()
public java.lang.String toString()
public int size()
public javax.jms.Message getMessageAt(int index)
index
.
index
- public java.util.List getMessages()
List
with all messages sent to
this destination. Higher priority messages appear first in the list.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |