qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Conway <acon...@redhat.com>
Subject Re: Client trouble
Date Fri, 10 Dec 2010 13:32:08 GMT
On 12/09/2010 01:49 PM, Adam Kaminiecki wrote:
> I have one more question how can I get message synchronius? I know how to
> subscribe for asynchronius.
> Is method
> session.Sync();
> set all operation synchronius?

session.sync() will block until all previous operations on the session are 
completed. It doesn't have any effect on subsequent operations. Typical pattern 
is to do a bit of work asynchronously, then call session.sync() at the point 
where you want to be sure all the work has completed.

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message