diff options
| author | Gordon Sim <gsim@apache.org> | 2008-11-14 16:40:22 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-11-14 16:40:22 +0000 |
| commit | 072c135f13cd287224ccc9b754a6c2b83940b6cd (patch) | |
| tree | 485163f392741b72485b8e7959ed66737fcd21b3 /cpp/src/qpid/client/Subscription.cpp | |
| parent | 23482177f452ebdf3023534988efe60d41e8c826 (diff) | |
| download | qpid-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.cpp | 4 |
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 |
