summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/broker/SemanticState.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-06-22 19:27:12 +0000
committerGordon Sim <gsim@apache.org>2010-06-22 19:27:12 +0000
commit91c77007649756868748b02fa8fd7ff9d6e881b4 (patch)
treeeb54eacbd4fee0ab2c825d7739c004195a9a817d /qpid/cpp/src/qpid/broker/SemanticState.h
parent9f875847254c6a47f7fc9fef3fcfee7e0391d39e (diff)
downloadqpid-python-91c77007649756868748b02fa8fd7ff9d6e881b4.tar.gz
QPID-2688: ensure that unacked messages are requeued before autodeletion occurs when session closes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@956988 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/SemanticState.h')
-rw-r--r--qpid/cpp/src/qpid/broker/SemanticState.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/SemanticState.h b/qpid/cpp/src/qpid/broker/SemanticState.h
index cae852732d..2b314920e6 100644
--- a/qpid/cpp/src/qpid/broker/SemanticState.h
+++ b/qpid/cpp/src/qpid/broker/SemanticState.h
@@ -157,6 +157,7 @@ class SemanticState : private boost::noncopyable {
const string userID;
const string userName;
const bool isDefaultRealm;
+ bool closeComplete;
void route(boost::intrusive_ptr<Message> msg, Deliverable& strategy);
void checkDtxTimeout();
@@ -165,6 +166,8 @@ class SemanticState : private boost::noncopyable {
AckRange findRange(DeliveryId first, DeliveryId last);
void requestDispatch();
void cancel(ConsumerImpl::shared_ptr);
+ void unsubscribe(ConsumerImpl::shared_ptr);
+ void disable(ConsumerImpl::shared_ptr);
public:
SemanticState(DeliveryAdapter&, SessionContext&);
@@ -220,6 +223,7 @@ class SemanticState : private boost::noncopyable {
void attached();
void detached();
+ void closed();
// Used by cluster to re-create sessions
template <class F> void eachConsumer(F f) {