I'm attempting to create a setup where a client receives a massive number of messages from a broker, and I'm trying to poll with a separate process when the queue reaches 0 unreceived messages (Or, equally, is empty).
Does ActiveMQ provide a mechanism to do this? My first attempt was to have the separate process subscribe to the queue and then loop through canRead(), but this appears to apply only to the messages that particular process has received, not the overarching queue status.
Again, importantly, the receiver is happy to just keep consuming, only the separate process cares about it finally gobbling everything down at that particular moment.
Thanks,
--Josh
MS CS