diff options
author | Gordon Sim <gsim@apache.org> | 2007-07-27 15:44:52 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-07-27 15:44:52 +0000 |
commit | 80406d0fb680239a0141b81fb0b9f20d20c9b1e1 (patch) | |
tree | 13677bf773bf25db03144aa72c97a49d2810240d /cpp/src/qpid/cluster/SessionManager.cpp | |
parent | a9232d5a02a19f093f212cb0b76772a20b45cb1b (diff) | |
download | qpid-python-80406d0fb680239a0141b81fb0b9f20d20c9b1e1.tar.gz |
Use execution layer to acknowledge messages.
Turn off 0-9 framing of requests and responses.
Some refactoring around message delivery.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@560285 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/SessionManager.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/SessionManager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/SessionManager.cpp b/cpp/src/qpid/cluster/SessionManager.cpp index 9f6438cf92..88ddfe843f 100644 --- a/cpp/src/qpid/cluster/SessionManager.cpp +++ b/cpp/src/qpid/cluster/SessionManager.cpp @@ -36,7 +36,7 @@ using namespace sys; using namespace broker; /** Handler to send frames direct to local broker (bypass correlation etc.) */ -struct BrokerHandler : public FrameHandler, private ChannelAdapter { + struct BrokerHandler : public FrameHandler, private ChannelAdapter, private DeliveryAdapter { Connection connection; Channel channel; BrokerAdapter adapter; @@ -51,7 +51,7 @@ struct BrokerHandler : public FrameHandler, private ChannelAdapter { // BrokerHandler(Broker& broker) : connection(0, broker), - channel(connection, 1, 0), + channel(connection, *this, 1, 0), adapter(channel, connection, broker, *this) {} void handle(AMQFrame& frame) { @@ -68,6 +68,10 @@ struct BrokerHandler : public FrameHandler, private ChannelAdapter { virtual void handleMethodInContext(shared_ptr<AMQMethodBody>, const MethodContext&){} // No-op send. virtual RequestId send(shared_ptr<AMQBody>, Correlator::Action) { return 0; } + + //delivery adapter methods, also no-ops: + virtual DeliveryId deliver(Message::shared_ptr&, DeliveryToken::shared_ptr) { return 0; } + virtual void redeliver(Message::shared_ptr&, DeliveryToken::shared_ptr, DeliveryId) {} }; /** Wrap plain AMQFrames in SessionFrames */ |