summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Connection.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-07-17 02:06:50 +0000
committerAlan Conway <aconway@apache.org>2008-07-17 02:06:50 +0000
commit37103322e9fd5889bc2d412b64bb21eb8743391b (patch)
tree8d7c3ece2071d0b2ec4658f6f149322d3e5337fa /cpp/src/qpid/broker/Connection.h
parente65b0086a2924ff04640b1350393a816249d01b3 (diff)
downloadqpid-python-37103322e9fd5889bc2d412b64bb21eb8743391b.tar.gz
Enable dequeue for prototype cluster
- qpid/broker/SemanticState.cpp: moved doOutput into write idle callback. - qpid/broker/Connection.cpp: make doOutput an intercept point. - qpid/cluster/*: intercept doOutput to serialize output in cluster thread. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@677486 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Connection.h')
-rw-r--r--cpp/src/qpid/broker/Connection.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Connection.h b/cpp/src/qpid/broker/Connection.h
index 0d646bab83..ae8708861a 100644
--- a/cpp/src/qpid/broker/Connection.h
+++ b/cpp/src/qpid/broker/Connection.h
@@ -96,7 +96,8 @@ class Connection : public sys::ConnectionInputHandler,
// Extension points: allow plugins to insert additional functionality.
boost::function<void(framing::AMQFrame&)> receivedFn;
- boost::function<void()> closedFn;
+ boost::function<void ()> closedFn;
+ boost::function<bool ()> doOutputFn;
private:
typedef boost::ptr_map<framing::ChannelId, SessionHandler> ChannelMap;
@@ -104,6 +105,7 @@ class Connection : public sys::ConnectionInputHandler,
void receivedImpl(framing::AMQFrame& frame);
void closedImpl();
+ bool doOutputImpl();
ChannelMap channels;
framing::AMQP_ClientProxy::Connection* client;