From 072c135f13cd287224ccc9b754a6c2b83940b6cd Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 14 Nov 2008 16:40:22 +0000 Subject: 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 --- cpp/src/qpid/client/Subscription.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/client/Subscription.cpp') 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 -- cgit v1.2.1