diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-11-21 22:08:13 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-11-21 22:08:13 +0000 |
commit | 286ecd708ec48dc5622912bf43240e2660fadf2c (patch) | |
tree | a41db11c7693ba086ac6086ac03495fd77aa928a /cpp/src/qpid/client/SubscriptionManager.h | |
parent | 29f4c5f9dd9eea9a5cba07e6a06e724fa5669436 (diff) | |
download | qpid-python-286ecd708ec48dc5622912bf43240e2660fadf2c.tar.gz |
- added confirm mode to perftest
- added acquire mode to perftest
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@597228 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SubscriptionManager.h')
-rw-r--r-- | cpp/src/qpid/client/SubscriptionManager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/SubscriptionManager.h b/cpp/src/qpid/client/SubscriptionManager.h index 5cff46f0f2..f163360f5d 100644 --- a/cpp/src/qpid/client/SubscriptionManager.h +++ b/cpp/src/qpid/client/SubscriptionManager.h @@ -46,6 +46,7 @@ class SubscriptionManager bool window; AckPolicy autoAck; bool confirmMode; + bool acquireMode; public: SubscriptionManager(Session_0_10& session); @@ -107,6 +108,13 @@ public: */ void setConfirmMode(bool confirm); + /** Set the acquire-mode for new subscriptions. Defaults to true. + *@param acquire: if false messages are not dequed, if true + * messages are dequed on acknowledgement or on transfer + * depending on confirmMode. + */ + void setAcquireMode(bool acquire); + /** Set the acknowledgement policy for new subscriptions. * Default is to acknowledge every message automatically. */ |