summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/Subscription.cpp
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/Subscription.cpp
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/Subscription.cpp')
-rw-r--r--cpp/src/qpid/client/Subscription.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/Subscription.cpp b/cpp/src/qpid/client/Subscription.cpp
index bf788c5f93..1f1b5ac6c6 100644
--- a/cpp/src/qpid/client/Subscription.cpp
+++ b/cpp/src/qpid/client/Subscription.cpp
@@ -22,6 +22,7 @@
#include "Subscription.h"
#include "SubscriptionImpl.h"
#include "HandlePrivate.h"
+#include "qpid/framing/enum.h"
namespace qpid {
namespace client {
@@ -42,7 +43,8 @@ void Subscription::release(const SequenceSet& messageIds) { impl->release(messag
Session Subscription::getSession() const { return impl->getSession(); }
SubscriptionManager&Subscription:: getSubscriptionManager() const { return impl->getSubscriptionManager(); }
void Subscription::cancel() { impl->cancel(); }
-
+void Subscription::grantMessageCredit(uint32_t value) { impl->grantCredit(framing::message::CREDIT_UNIT_MESSAGE, value); }
+void Subscription::grantByteCredit(uint32_t value) { impl->grantCredit(framing::message::CREDIT_UNIT_BYTE, value); }
}} // namespace qpid::client