summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SessionState.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-10-21 23:30:32 +0000
committerGordon Sim <gsim@apache.org>2008-10-21 23:30:32 +0000
commit9dcdabfb693f77c801f5f183f662858d26c1ffc6 (patch)
tree5d1af817a6e4b712871071ce234203c75ad2e0b9 /cpp/src/qpid/broker/SessionState.cpp
parente128333aaf32ee56df6a5ccadb2b20c6c78fcf82 (diff)
downloadqpid-python-9dcdabfb693f77c801f5f183f662858d26c1ffc6.tar.gz
Refactored DeliveryRecord and delivery path to remove some redundant code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@706811 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionState.cpp')
-rw-r--r--cpp/src/qpid/broker/SessionState.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp
index 587dcaf724..7910ef3f0c 100644
--- a/cpp/src/qpid/broker/SessionState.cpp
+++ b/cpp/src/qpid/broker/SessionState.cpp
@@ -21,7 +21,7 @@
#include "SessionState.h"
#include "Broker.h"
#include "ConnectionState.h"
-#include "MessageDelivery.h"
+#include "DeliveryRecord.h"
#include "SessionManager.h"
#include "SessionHandler.h"
#include "qpid/framing/AMQContentBody.h"
@@ -230,14 +230,13 @@ void SessionState::handleOut(AMQFrame& frame) {
handler->out(frame);
}
-DeliveryId SessionState::deliver(QueuedMessage& msg, DeliveryToken::shared_ptr token)
+void SessionState::deliver(DeliveryRecord& msg)
{
uint32_t maxFrameSize = getConnection().getFrameMax();
assert(senderGetCommandPoint().offset == 0);
SequenceNumber commandId = senderGetCommandPoint().command;
- MessageDelivery::deliver(msg, getProxy().getHandler(), commandId, token, maxFrameSize);
+ msg.deliver(getProxy().getHandler(), commandId, maxFrameSize);
assert(senderGetCommandPoint() == SessionPoint(commandId+1, 0)); // Delivery has moved sendPoint.
- return commandId;
}
void SessionState::sendCompletion() { handler->sendCompletion(); }