|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.jmscts.core.CountingListener
|
+--org.exolab.jmscts.core.CachingListener
Helper class for receiving messages asynchronously and caching them
| Constructor Summary | |
CachingListener(int expected)
Construct an instance of the listener, with the number of messages expected to be received. |
|
| Method Summary | |
java.util.List |
getMessages()
Returns the list of received messages |
void |
onMessage(javax.jms.Message message)
This method is asynchronously invoked by the message consumer when a message becomes available. |
| Methods inherited from class org.exolab.jmscts.core.CountingListener |
getExpected, getReceived, waitForCompletion, waitForCompletion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CachingListener(int expected)
expected - the number of messages expected| Method Detail |
public void onMessage(javax.jms.Message message)
onMessage in class CountingListenermessage - the received messagepublic java.util.List getMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||