diff options
| author | Gordon Sim <gsim@apache.org> | 2008-07-25 13:50:32 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-07-25 13:50:32 +0000 |
| commit | 1ce91a21e53358cfdb88203a7d00f9e99c4f5487 (patch) | |
| tree | d8c3ee61c703c79e54185f22f07bc63f88302fb2 /cpp/src/qpid/broker/QueuePolicy.h | |
| parent | c063c7b4a350ce64abb4075b28b0de16fd5ec71c (diff) | |
| download | qpid-python-1ce91a21e53358cfdb88203a7d00f9e99c4f5487.tar.gz | |
Only reduce count and size maintained for queue plicy when messages are actually dequeued (i.e. acked).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679805 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/QueuePolicy.h')
| -rw-r--r-- | cpp/src/qpid/broker/QueuePolicy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/QueuePolicy.h b/cpp/src/qpid/broker/QueuePolicy.h index 2135e327a7..4511a63b64 100644 --- a/cpp/src/qpid/broker/QueuePolicy.h +++ b/cpp/src/qpid/broker/QueuePolicy.h @@ -21,6 +21,7 @@ #ifndef _QueuePolicy_ #define _QueuePolicy_ +#include <iostream> #include "qpid/framing/FieldTable.h" namespace qpid { @@ -50,6 +51,7 @@ namespace qpid { uint64_t getMaxSize() const { return maxSize; } static void setDefaultMaxSize(uint64_t); + friend std::ostream& operator<<(std::ostream&, const QueuePolicy&); }; } } |
