activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrh <mrhayg...@gmail.com>
Subject Re: Stop Thread / Stop Listening
Date Fri, 26 Oct 2007 13:49:31 GMT

In the activemq-cpp example code, there is a countdown "latch".  If I
understand it correctly, you can pass in a number of milliseconds that it is
to wait for a message or a number that it will count down to as messages are
received.  With this structure, is it possible to asychronously receive
messages (using the onMessage function to process them) but stop the
listener from the outside? Say, from an outside thread?

Thanks,
mrh
-- 
View this message in context: http://www.nabble.com/Stop-Thread---Stop-Listening-tf4693571s2354.html#a13427708
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message