|
|||||||||||
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.MockQueue
Queue
implementation.
Queue
Constructor Summary | |
MockQueue(java.lang.String name)
Creates MockQueue 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 |
getQueueName()
|
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.Queue |
toString |
Constructor Detail |
public MockQueue(java.lang.String name)
MockQueue
with the specified name
name
name
- Method Detail |
public java.lang.String getQueueName() throws javax.jms.JMSException
getQueueName
in interface javax.jms.Queue
javax.jms.JMSException
Queue.getQueueName()
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 |