diff options
author | Alan Conway <aconway@apache.org> | 2008-08-06 21:17:19 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-08-06 21:17:19 +0000 |
commit | fd5bd02ac45e991e7bcc363fa489179056fe486c (patch) | |
tree | 23c4311aaffe5aa76045b8c56004dd8f3fab7033 /qpid/cpp/src/qpid/broker/SemanticState.h | |
parent | 467af5e55545de8170485f23b6bb6e12c537d2b4 (diff) | |
download | qpid-python-fd5bd02ac45e991e7bcc363fa489179056fe486c.tar.gz |
- Added OutputTask::hasOutput() test.
- Cluster only sends doOutput events when hasOutput()
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@683416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/SemanticState.h')
-rw-r--r-- | qpid/cpp/src/qpid/broker/SemanticState.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/SemanticState.h b/qpid/cpp/src/qpid/broker/SemanticState.h index a0424bf747..e03d5ec89b 100644 --- a/qpid/cpp/src/qpid/broker/SemanticState.h +++ b/qpid/cpp/src/qpid/broker/SemanticState.h @@ -96,6 +96,7 @@ class SemanticState : public sys::OutputTask, Queue::shared_ptr getQueue() { return queue; } bool isBlocked() const { return blocked; } + bool hasOutput(); bool doOutput(); }; @@ -180,6 +181,7 @@ class SemanticState : public sys::OutputTask, void release(DeliveryId first, DeliveryId last, bool setRedelivered); void reject(DeliveryId first, DeliveryId last); void handle(boost::intrusive_ptr<Message> msg); + bool hasOutput() { return outputTasks.hasOutput(); } bool doOutput() { return outputTasks.doOutput(); } //final 0-10 spec (completed and accepted are distinct): |