[rabbitmq-discuss] Is there a way to receive multiple message using a single synchronous call ?

Simon MacMullen simon at rabbitmq.com
Mon Jun 10 11:05:32 BST 2013

On 09/06/13 02:23, Vikram Viswanathan wrote:
> When I know that there are N messages( N could be a small value less
> than 10) in the queue, then I should be able to do something like
> channel.basic_get(String queue, boolean autoAck , int numberofMsg ). I
> don't want to make multiple requests to the server and  I don't want to
> register a handler to receive messages.
> Is there a way ?

I'm afraid not, you can either receive one message with basic.get or 
multiple with basic.consume.

Cheers, Simon

Simon MacMullen
RabbitMQ, Pivotal

More information about the rabbitmq-discuss mailing list