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/SubscriptionImpl.h | |
| 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/SubscriptionImpl.h')
| -rw-r--r-- | cpp/src/qpid/client/SubscriptionImpl.h | 4 |
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: |
