[rabbitmq-discuss] Java client QueueingConsumer question about nextDelivery(long timeout)

Guy Boertje guyboertje at gmail.com
Fri Jul 1 12:33:43 BST 2011

Thanks for your reply,

Humble apologies, this morning I refactored my investigative code and
found that the method call does return early with a delivery.

I had tried to look for any confirmation of this in the
LinkedBlockingQueue javadocs but it was not explicit.


On Fri, 2011-07-01 at 11:32 +0100, Matthias Radestock wrote:
> Guy,
> On 30/06/11 06:51, Guy Boertje wrote:
> > My testing using the Java client via jruby shows that using, for
> > example, nextDelivery(500) will always take at least 500 milliseconds
> > and not return early if a delivery could be take from the queue
> > immediately.
> That shouldn't happen, and looking at the code I can't see how it would. 
> Can you post some code to reproduce this?
> Regards,
> Matthias.

More information about the rabbitmq-discuss mailing list