diff options
author | Alan Conway <aconway@apache.org> | 2008-10-10 04:49:48 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-10-10 04:49:48 +0000 |
commit | 5d07d177cfc5eca21c44981bbe342f0cdcced4e5 (patch) | |
tree | 0f5f83642ed5effed52a5e2547565362ce2aea8c /cpp/src/qpid/client/SubscriptionManager.h | |
parent | e7ceead683231ef2cb35a6ee70488e859f023d12 (diff) | |
download | qpid-python-5d07d177cfc5eca21c44981bbe342f0cdcced4e5.tar.gz |
QPID-1340 froM Mick Goulish: preliminary client-side failover support.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703319 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, 5 insertions, 3 deletions
diff --git a/cpp/src/qpid/client/SubscriptionManager.h b/cpp/src/qpid/client/SubscriptionManager.h index c50e67effa..10dd8b8da3 100644 --- a/cpp/src/qpid/client/SubscriptionManager.h +++ b/cpp/src/qpid/client/SubscriptionManager.h @@ -190,7 +190,7 @@ class SubscriptionManager : public sys::Runnable /** Set the acquire-mode for new subscriptions. Defaults to false. *@param acquire: if false messages pre-acquired, if true * messages are dequed on acknowledgement or on transfer - * depending on acceptMode. + * depending on acceptMode. */ void setAcquireMode(bool acquire); @@ -199,9 +199,11 @@ class SubscriptionManager : public sys::Runnable */ void setAckPolicy(const AckPolicy& autoAck); - AckPolicy& getAckPolicy(); + AckPolicy& getAckPolicy(); - Session getSession() const { return session; } + void registerFailoverHandler ( boost::function<void ()> fh ); + + Session getSession() const; }; /** AutoCancel cancels a subscription in its destructor */ |