qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: How to batch Acknowledge messages
Date Tue, 29 Jan 2013 19:01:55 GMT
On 01/29/2013 06:35 PM, Rajesh Khan wrote:
> Are we not suppose to call that ?

What that method does is block until the server has done all outstanding 
work requested by that client session. There is nothing prohibiting you 
calling it, I am just curious as to why you are doing so.

If you want to block until the acknowledge() call is actually processed 
by the server you can use the optional parameter to that. (which is more 
or less equivalent to calling sync() after acknowledge().

Of course since sync() may block pending a roundtrip to the server, it 
may impact overall throughput. If you don't have a clear reason for 
using it, I would leave it out.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message