[rabbitmq-discuss] rabbitmq java client keeps pulling data?

Michael Klishin mklishin at pivotal.io
Fri Sep 19 08:05:30 BST 2014


On 19 September 2014 at 11:03:34, DeepNightTwo (deepnighttwo at gmail.com) wrote:
> my question is, is there a size setting for consumer to limit  
> the count of
> un-consumed delivery? Or I should use the basicGet api?

Yes, basic.qos +  manual acknowledgements (see tutorial 2). I'd also extend
DefaultConsumer instead of using QueueingConsumer.

http://www.rabbitmq.com/tutorials/tutorial-two-java.html
--  
MK  

Staff Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list