summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SubscriptionManager.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-31 15:08:00 +0000
committerAlan Conway <aconway@apache.org>2008-10-31 15:08:00 +0000
commit79323867dae1ad7b0d00e4055e506749236d9bf1 (patch)
tree7a072a6ad8f9b81cf5984a61d2e9cdfbb26d1d89 /cpp/src/qpid/client/SubscriptionManager.h
parent2ff919b2bf8623b6bf542e589aae4c05c403a009 (diff)
downloadqpid-python-79323867dae1ad7b0d00e4055e506749236d9bf1.tar.gz
Added return Message overload of SubscriptionManager get().
Fixed compile error in broker/Vhost.cpp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709440 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SubscriptionManager.h')
-rw-r--r--cpp/src/qpid/client/SubscriptionManager.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SubscriptionManager.h b/cpp/src/qpid/client/SubscriptionManager.h
index 46394808f4..393349a6af 100644
--- a/cpp/src/qpid/client/SubscriptionManager.h
+++ b/cpp/src/qpid/client/SubscriptionManager.h
@@ -120,12 +120,18 @@ class SubscriptionManager : public sys::Runnable
/** Get a single message from a queue.
*@param result is set to the message from the queue.
- *@
*@param timeout wait up this timeout for a message to appear.
*@return true if result was set, false if no message available after timeout.
*/
bool get(Message& result, const std::string& queue, sys::Duration timeout=0);
+ /** Get a single message from a queue.
+ *@param timeout wait up this timeout for a message to appear.
+ *@return message from the queue.
+ *@throw Exception if the timeout is exceeded.
+ */
+ Message get(const std::string& queue, sys::Duration timeout=sys::TIME_INFINITE);
+
/** Get a subscription by name.
*@throw Exception if not found.
*/