diff options
author | Gordon Sim <gsim@apache.org> | 2008-10-21 23:30:32 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-10-21 23:30:32 +0000 |
commit | 9dcdabfb693f77c801f5f183f662858d26c1ffc6 (patch) | |
tree | 5d1af817a6e4b712871071ce234203c75ad2e0b9 /cpp/src/qpid/broker/SessionState.cpp | |
parent | e128333aaf32ee56df6a5ccadb2b20c6c78fcf82 (diff) | |
download | qpid-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.cpp | 7 |
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(); } |