[rabbitmq-discuss] Notification on Queue Shutdown

Marek Majkowski majek04 at gmail.com
Wed Feb 23 12:35:32 GMT 2011


On Wed, Feb 23, 2011 at 12:26, Max Bridgewater
<max.bridgewater at gmail.com> wrote:
> Is there a way to listen and be notified when RabbitMQ shuts down a
> queue or be informed of when the last consumer leaves a queue?

Rabbit won't automatically destroy a queue unless it's 'exclusive' or
'auto_delete'.

Queue.declare command returns three things: queue name, number of messages
in the queue and number of consumers. You can use this to check if there
is a consumer left.

Marek


More information about the rabbitmq-discuss mailing list