title: How to browse the queue in rabbitmq without dequeuing the messages
body: <p>I am trying to fetch a message with a particular correlation id like explained in rabbitmq docs. However I see that the irrelevant messages gets dequeued. I do not want it to happen. How can I tell rabbitmq to not dequeue after I get message and get to know that this is not the one I was looking for. Please help me.</p>
  
  <p>`</p>
  
  <pre><code>.
  .
  replyQueueName = channel.queueDeclare().getQueue();
  consumer = new QueueingConsumer(channel);
  channel.basicConsume(replyQueueName, false, consumer);
  while (true) {
              QueueingConsumer.Delivery delivery = consumer.nextDelivery();
              System.out.println(delivery.getProperties().getCorrelationId());
              if (delivery.getProperties().getCorrelationId().equals(corrId)) {
                  response = new String(delivery.getBody());
                  break;
              }
          }
  </code></pre>
  
  <p>`</p>