[rabbitmq-discuss] does client caches messages?
mtlotfizad at gmail.com
Sat May 11 12:42:30 BST 2013
I download the Recv.java<http://github.com/rabbitmq/rabbitmq-tutorials/blob/master/java/Recv.java>
and change some of its code to this:
* ConnectionFactory factory = new ConnectionFactory();
Connection connection = factory.newConnection();
Channel channel = connection.createChannel();
System.out.println(" [*] Waiting for messages. To exit press
QueueingConsumer consumer = new QueueingConsumer(channel);
channel.basicConsume(QUEUE_NAME, false, consumer);
On Sat, May 11, 2013 at 12:14 PM, Matthias Radestock
<matthias at rabbitmq.com>wrote:
> On 11/05/13 08:36, Mohsen Lotfizad wrote:
>> In fact I just want to know when I set prefetch_cont=2, why my consumer
>> try to give about 700 messages?
> How is your consumer consuming messages? With basic.consume or basic.get?
> Prefetch does not apply to the latter since the client is explicitly asking
> for the next message.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss