I need an Object
to be asynchronously notified when some BlockingQueue
has got an item to give.
I\'ve searched both Javadoc and the web for a p
This reply is too late on the topic, but recently I was working on a similar problem and this is what I used.
When BlockingQueue receives a item/object, I used Spring's SimpleApplicationEventMulticaster which supports Asynchronous event processing. Basically, I published an event and configured it to process asynchronously rather than blocking the same execution thread, allowing the queue consumer to keep consuming as long as there are items to be processed in BlockingQueue, while the event listener/consumer can perform action asynchronously.