[rabbitmq-discuss] How to tell Java Client running in a separate thread to stop consuming
simon at rabbitmq.com
Tue Oct 25 16:22:04 BST 2011
On 20/10/11 18:58, Adam Rabung wrote:
> Along these same lines, is it considered thread-safe to call
> channel.basicAck from a separate thread while the "host thread" for the
> channel is blocked on QueueingConsumer#nextDeliver?
As far as the client is concerned, there isn't a "host thread" for a
channel, but Channel is in general not thread-safe. This will be
addressed in the next release however.
> Better yet, when is
> it not thread-safe to call basicAck from a separate thread?
Umm, all the time right now.
More information about the rabbitmq-discuss