You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "zhaoyi0113@gmail.com" <zh...@gmail.com> on 2010/11/10 03:09:46 UTC

Does qpid-cpp messaging API support SubscriptionManager?

Since the qpid:messaging is the new API, I want to move my code from
qpid::client to qpid::messaging. The SubscriptionManager class in
qpid::client namespace supports schedule the subscription in a thread. It
doesn't block the current thread. Does qpid::messaging have such similar
function support schedule subscription thread?
-- 
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Does-qpid-cpp-messaging-API-support-SubscriptionManager-tp5723276p5723276.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

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


Re: Does qpid-cpp messaging API support SubscriptionManager?

Posted by Alan Conway <ac...@redhat.com>.
On 11/09/2010 09:09 PM, zhaoyi0113@gmail.com wrote:
>
> Since the qpid:messaging is the new API, I want to move my code from
> qpid::client to qpid::messaging. The SubscriptionManager class in
> qpid::client namespace supports schedule the subscription in a thread. It
> doesn't block the current thread. Does qpid::messaging have such similar
> function support schedule subscription thread?

You can create a thread that calls Receiver::fetch() in a loop, that will give 
you equivalent functionality.

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