summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2009-11-16 14:02:20 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2009-11-16 14:02:20 +0000
commit0712a2e21fabb7eeb57b8c4683cfbb88ee478951 (patch)
treefd3ba7b4005fcc021369be68182887b52a86c191 /qpid/cpp
parentb59de582b6ec38bf4a9ed54d0393c9b2677b660f (diff)
downloadqpid-python-0712a2e21fabb7eeb57b8c4683cfbb88ee478951.tar.gz
expose less internals and some term clean up thanks to gsim's comments
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@880755 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/broker/SemanticState.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/qpid/cpp/src/qpid/broker/SemanticState.cpp b/qpid/cpp/src/qpid/broker/SemanticState.cpp
index 3e23af99c0..9680ada936 100644
--- a/qpid/cpp/src/qpid/broker/SemanticState.cpp
+++ b/qpid/cpp/src/qpid/broker/SemanticState.cpp
@@ -276,10 +276,10 @@ SemanticState::ConsumerImpl::ConsumerImpl(SemanticState* _parent,
if (agent != 0)
{
- mgmtObject = new _qmf::Subscription(agent, this, ms , queue->GetManagementObject()->getObjectId() ,name ,arguments,
- acquire, ackExpected, syncFrequency, resumeId, resumeTtl, exclusive);
+ mgmtObject = new _qmf::Subscription(agent, this, ms , queue->GetManagementObject()->getObjectId() ,name,
+ !acquire, ackExpected, exclusive ,arguments);
agent->addObject (mgmtObject, agent->allocateId(this));
- mgmtObject->set_mode("WINDOW");
+ mgmtObject->set_creditMode("WINDOW");
}
}
}
@@ -335,7 +335,6 @@ bool SemanticState::ConsumerImpl::accept(intrusive_ptr<Message> msg)
// in future.
//
blocked = !(filter(msg) && checkCredit(msg));
- if (mgmtObject && !blocked && acquire) { mgmtObject->inc_accepted(); }
return !blocked;
}
@@ -566,7 +565,7 @@ void SemanticState::ConsumerImpl::setWindowMode()
{
windowing = true;
if (mgmtObject){
- mgmtObject->set_mode("WINDOW");
+ mgmtObject->set_creditMode("WINDOW");
}
}
@@ -574,7 +573,7 @@ void SemanticState::ConsumerImpl::setCreditMode()
{
windowing = false;
if (mgmtObject){
- mgmtObject->set_mode("CREDIT");
+ mgmtObject->set_creditMode("CREDIT");
}
}