Re: Why does the high level consumer block, or rather where does it?

2014-01-05 Thread Jun Rao
Yes, ConsumerIterator blocks when there is no new message. This is done by calling take() on a blocking queue. Thanks, Jun On Sun, Jan 5, 2014 at 5:53 PM, S Ahmed wrote: > I'm trying to trace through the codebase and figure out where exactly the > block occurs in the high level consumer? > >

Why does the high level consumer block, or rather where does it?

2014-01-05 Thread S Ahmed
I'm trying to trace through the codebase and figure out where exactly the block occurs in the high level consumer? public void run() { ConsumerIterator it = m_stream.iterator(); while (it.hasNext()) System.out.println("Thread " + m_threadNumber + ": " + new String(it.next().mess