title: DeliverCallback deliverCallback = (consumerTag, delivery) function not getting called
body: <p>I am trying to retrieve response from a rabbitmq queue, on the first go with the same code, I was able to retrieve the response correctly but whenever I run it the second or third time it does not call the <code>delivercallback</code> function where I am trying to retrieve the response</p>
  
  <pre class="lang-java prettyprint-override"><code>DeliverCallback deliverCallback = (consumerTag, delivery) -&gt; {
      String message = new String(delivery.getBody(), "UTF-8");
  
      System.out.println(" [x] Received '" + message + "'");
  
  };
  boolean autoAck = true; // acknowledgment is covered below
  channel.basicConsume(QUEUE_NAME, autoAck, deliverCallback, consumerTag -&gt; { });
  </code></pre>
  
  <p>Expected: Response should get printed which is there in DeliverCallback lambda expression.
  Actual: DeliverCallback lambda expression not getting called that is why I am not able to retrieve response from rabbitmq queue</p>