activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Queue browser hasMoreElements blocks on empty
Date Mon, 25 Feb 2013 16:33:13 GMT
Doesn't look like this blocking behavior is configurable at the moment.
Looks like it will try to pull messages if the prefetch is 0, otherwise
sits in a blocking-while loop. Can you open a jira to track this request?


On Tue, Feb 19, 2013 at 10:59 AM, Oleg Dulin <oleg.dulin@gmail.com> wrote:

> I need queue browser hasMoreElements method to return true/false and not
> wait for messages to show up on the queue. Is there any way to accomplish
> that ?
>
> --
> Regards,
> Oleg Dulin
> NYC Java Big Data Engineer
> http://www.olegdulin.com/
>
>
>


-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message