summaryrefslogtreecommitdiff
path: root/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
commit2f81dc3c49491cdb166afce8440c1d4cf144152e (patch)
tree0c4238d97fbae94ed724aea299a9772829256334 /cpp/src/qpid/broker/SemanticState.h
parentdfcf3677e34ee4c1aaabe9c3d39bdbceef7ece9a (diff)
downloadqpid-python-2f81dc3c49491cdb166afce8440c1d4cf144152e.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/qpid@956988 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.h')
-rw-r--r--cpp/src/qpid/broker/SemanticState.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.h b/cpp/src/qpid/broker/SemanticState.h
index cae852732d..2b314920e6 100644
--- a/cpp/src/qpid/broker/SemanticState.h
+++ b/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) {