summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SubscriptionImpl.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-11-14 16:40:22 +0000
committerGordon Sim <gsim@apache.org>2008-11-14 16:40:22 +0000
commit072c135f13cd287224ccc9b754a6c2b83940b6cd (patch)
tree485163f392741b72485b8e7959ed66737fcd21b3 /cpp/src/qpid/client/SubscriptionImpl.h
parent23482177f452ebdf3023534988efe60d41e8c826 (diff)
downloadqpid-python-072c135f13cd287224ccc9b754a6c2b83940b6cd.tar.gz
Added some failover capable tests
Added grantCredit() method to subscription to allow simpler control of message delivery git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@714065 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SubscriptionImpl.h')
-rw-r--r--cpp/src/qpid/client/SubscriptionImpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/SubscriptionImpl.h b/cpp/src/qpid/client/SubscriptionImpl.h
index 0c51b598c8..c4c486daeb 100644
--- a/cpp/src/qpid/client/SubscriptionImpl.h
+++ b/cpp/src/qpid/client/SubscriptionImpl.h
@@ -25,6 +25,7 @@
#include "qpid/client/SubscriptionSettings.h"
#include "qpid/client/Session.h"
#include "qpid/client/MessageListener.h"
+#include "qpid/framing/enum.h"
#include "qpid/framing/SequenceSet.h"
#include "qpid/sys/Mutex.h"
#include "qpid/RefCounted.h"
@@ -88,6 +89,9 @@ class SubscriptionImpl : public RefCounted, public MessageListener {
/** Cancel the subscription. */
void cancel();
+ /** Grant specified credit for this subscription **/
+ void grantCredit(framing::message::CreditUnit unit, uint32_t value);
+
void received(Message&);
private: