title: Check if a durable queue in rabbitMQ has data in it?
body: <p>I have some durable queues running in the broker. At some point, I want to check if the queue has got any data in it and close or kill that queue if it is empty. </p>
  
  <p>I am using java to code the senders and receivers.
  I know which all queues are present in the broker.</p>
  
  <p>Suggest your way of doing this.</p>