You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Jiri Krutil <ji...@krutil.com> on 2011/05/04 12:58:42 UTC
Async consuming in C++ client?
Hi
The Qpid C++ client library class qpid::messaging::Receiver allows
synchronous (blocking) receiving from a queue using get() or fetch().
Is there also a way how to receive asynchronously, by registering a
callback function or listener?
Is qpid::client::SubscriptionManager still supported in version 0.8?
Many thanks
Jiri
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: Async consuming in C++ client?
Posted by Alan Conway <ac...@redhat.com>.
On 05/04/2011 06:58 AM, Jiri Krutil wrote:
> Hi
>
> The Qpid C++ client library class qpid::messaging::Receiver allows synchronous
> (blocking) receiving from a queue using get() or fetch().
>
> Is there also a way how to receive asynchronously, by registering a callback
> function or listener?
Currently no. You can start your own threads to receive messages.
> Is qpid::client::SubscriptionManager still supported in version 0.8?
It is present but deprecated. The messaging API is the way to go for any new work.
There was a proposal for this that didn't get implemented yet:
https://issues.apache.org/jira/browse/QPID-2451
Please comment on that JIRA with your thoughts on the proposed approach and/or
any suggestions you may have for how this API should work.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org