When I start consuming from a queue that is already locked by another exclusive consumer then no exception is thrown by the consume method, although I can see the error being logged. The ExclusiveConsumer
keeps trying to start consuming every 10 seconds, which is great, but I would like to check (from code) when it hasn't started.
Consume failed. queue='Queue1', consumer tag='cb439965-72d4-4d52-a248-91077b796703', message='The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=403, text="ACCESS_REFUSED - queue '1' in vhost '/' in exclusive use", classId=60, methodId=20, cause='
Is there any way I can detect the Consumer
status without modifying the code?