diff options
author | Alan Conway <aconway@apache.org> | 2008-06-09 20:55:09 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-06-09 20:55:09 +0000 |
commit | 03a39d920d010b29b156a99ee9b3fcfc7c7c64a1 (patch) | |
tree | 0959d63de389bd08fcb5d074eb5a0712a1db24a8 /cpp/src/qpid/client/SubscriptionManager.h | |
parent | 31a74cd4a5c849b134a172cc5e6ce2e2a447e5e5 (diff) | |
download | qpid-python-03a39d920d010b29b156a99ee9b3fcfc7c7c64a1.tar.gz |
Updated doxygen comments in qpid/client/*.h
Changed request-response example to use SubscriptionManager like the others.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@665891 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SubscriptionManager.h')
-rw-r--r-- | cpp/src/qpid/client/SubscriptionManager.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/cpp/src/qpid/client/SubscriptionManager.h b/cpp/src/qpid/client/SubscriptionManager.h index 1a00e1beeb..930175564e 100644 --- a/cpp/src/qpid/client/SubscriptionManager.h +++ b/cpp/src/qpid/client/SubscriptionManager.h @@ -36,7 +36,10 @@ namespace qpid { namespace client { /** - * Utility to assist with creating subscriptions. + * A class to help create and manage subscriptions. + * + * Set up your subscriptions, then call run() to have messages + * delivered. * * \ingroup clientapi */ @@ -58,10 +61,14 @@ class SubscriptionManager : public sys::Runnable bool autoStop; public: + /** Create a new SubscriptionManager associated with a session */ SubscriptionManager(const Session& session); /** * Subscribe a MessagesListener to receive messages from queue. + * + * Provide your own subclass of MessagesListener to process + * incoming messages. It will be called for each message received. * *@param listener Listener object to receive messages. *@param queue Name of the queue to subscribe to. @@ -69,12 +76,14 @@ class SubscriptionManager : public sys::Runnable * If not specified, the queue name is used. */ void subscribe(MessageListener& listener, - const std::string& queue, - const std::string& tag=std::string()); + const std::string& queue, + const std::string& tag=std::string()); /** * Subscribe a LocalQueue to receive messages from queue. * + * Incoming messages are stored in the queue for you to retrieve. + * *@param queue Name of the queue to subscribe to. *@param tag Unique destination tag for the listener. * If not specified, the queue name is used. |