<div dir="ltr"><div>Thanks.�</div>On <a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.2.4/rabbitmq-java-client-javadoc-3.2.4/com/rabbitmq/client/QueueingConsumer.html">this </a>one.�<div>Search for deprecated in the page<br>
<div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 3, 2014 at 6:04 PM, Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 3 April 2014 at 18:09:06, rails (<a href="mailto:stammailbox@gmail.com">stammailbox@gmail.com</a>) wrote:<br>

> > 1. My DemoConsumer inherits from DefaultConsumer<br>
> I have noticed that working this way handleDelivery() is invoked<br>
> from ThreadPool.<br>
> (printing Thread.currentThread().getName() I see pool-1-thread-1/2/3/4<br>
> eachtime.<br>
> I have also tested it several times and saw that the order is saved.<br>
> Just to make sure - since different threads call handle delivery<br>
> - will it mess my order?<br>
<br>
</div>By default the pool has 5 threads, so yes. You can provide your own<br>
executor on ConnectionFactory, e.g. to use a single threaded executor.<br>
<div class=""><br>
> 2. QueueingConsumer All of the java tutorial use QueueingConsumer<br>
> to consume messages.<br>
> In the API Docs it is mentioned as a deprecated class.<br>
> Should I change my code to inherit from DefaultConsumer use it?<br>
> Is the tutorial outdated?<br>
<br>
</div>I believe it was undeprecated after some of its limitations<br>
were documented . On what pages do you see this mentioned?<br>
<span class="HOEnZb"><font color="#888888">--<br>
MK<br>
<br>
Software Engineer, Pivotal/RabbitMQ<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</font></span></blockquote></div><br></div>