summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SessionHandler.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-02-25 16:56:29 +0000
committerGordon Sim <gsim@apache.org>2008-02-25 16:56:29 +0000
commit773cc35a38cd34095f8800259ee7a2165a817053 (patch)
tree24c6b26d43ae2f95a7ad7be695bbe57ddbc4b641 /cpp/src/qpid/broker/SessionHandler.h
parentf4e2d3de5df7bbaae41053191638734a991fd21c (diff)
downloadqpid-python-773cc35a38cd34095f8800259ee7a2165a817053.tar.gz
Some refactoring of the 0-10 codepath (being migrated to final spec) that primarily colocates the current session and execution layers to facilitate implementing the new session layer that will now encompass this behaviour.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@630934 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionHandler.h')
-rw-r--r--cpp/src/qpid/broker/SessionHandler.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/cpp/src/qpid/broker/SessionHandler.h b/cpp/src/qpid/broker/SessionHandler.h
index 5a72bfb12d..e6bc463a82 100644
--- a/cpp/src/qpid/broker/SessionHandler.h
+++ b/cpp/src/qpid/broker/SessionHandler.h
@@ -28,7 +28,7 @@
#include "qpid/framing/AMQP_ClientProxy.h"
#include "qpid/framing/amqp_types.h"
#include "qpid/framing/ChannelHandler.h"
-#include "SessionContext.h"
+#include "qpid/framing/SequenceNumber.h"
#include <boost/noncopyable.hpp>
@@ -36,16 +36,18 @@ namespace qpid {
namespace broker {
class Connection;
+class ConnectionState;
class SessionState;
/**
* A SessionHandler is associated with each active channel. It
- * receives incoming frames, handles session commands and manages the
+ * receives incoming frames, handles session controls and manages the
* association between the channel and a session.
*/
class SessionHandler : public framing::AMQP_ServerOperations::SessionHandler,
public framing::AMQP_ClientOperations::SessionHandler,
- public SessionContext,
+ public framing::AMQP_ServerOperations::ExecutionHandler,
+ public framing::FrameHandler::InOutHandler,
private boost::noncopyable
{
public:
@@ -90,12 +92,17 @@ class SessionHandler : public framing::AMQP_ServerOperations::SessionHandler,
void attached(const framing::Uuid& sessionId, uint32_t detachedLifetime);
void detached();
+ //Execution methods:
+ void complete(uint32_t cumulativeExecutionMark, const framing::SequenceNumberSet& range);
+ void flush();
+ void noop();
+ void result(uint32_t command, const std::string& data);
+ void sync();
void assertAttached(const char* method) const;
void assertActive(const char* method) const;
void assertClosed(const char* method) const;
-
Connection& connection;
framing::ChannelHandler channel;
framing::AMQP_ClientProxy proxy;