diff options
| author | Alan Conway <aconway@apache.org> | 2008-08-07 13:45:24 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-08-07 13:45:24 +0000 |
| commit | ed5d40386e04fd75ea8051102abcb3a1f1f53ddd (patch) | |
| tree | 906434b6856197020bd711bedfd0c634134b66cd /cpp/src/qpid/broker/Queue.h | |
| parent | 469dbf73971b247af0659f8dfdf1b15c6724d11a (diff) | |
| download | qpid-python-ed5d40386e04fd75ea8051102abcb3a1f1f53ddd.tar.gz | |
Patch from Gordon Sim to fix issues with hasOutput implementation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@683617 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.h')
| -rw-r--r-- | cpp/src/qpid/broker/Queue.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h index e35b3ef7ee..347fc5cf9d 100644 --- a/cpp/src/qpid/broker/Queue.h +++ b/cpp/src/qpid/broker/Queue.h @@ -107,6 +107,7 @@ namespace qpid { void notify(); void removeListener(Consumer&); + void addListener(Consumer&); bool isExcluded(boost::intrusive_ptr<Message>& msg); @@ -114,8 +115,6 @@ namespace qpid { void popAndDequeue(); public: - // FIXME aconway 2008-08-06: was private, verify if needed public. - void addListener(Consumer&); virtual void notifyDurableIOComplete(); typedef boost::shared_ptr<Queue> shared_ptr; @@ -128,9 +127,14 @@ namespace qpid { management::Manageable* parent = 0); ~Queue(); - bool empty() const; - bool dispatch(Consumer&); + /** + * Check whether there would be a message available for + * dispatch to this consumer. If not, the consumer will be + * notified of events that may have changed this + * situation. + */ + bool checkForMessages(Consumer&); void create(const qpid::framing::FieldTable& settings); void configure(const qpid::framing::FieldTable& settings); |
