summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Queue.h
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2009-11-09 18:41:36 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2009-11-09 18:41:36 +0000
commit5801ede4cd403953c0b809c8b2efdbc77fe0e371 (patch)
treeda155eea89966133c075e247a06295220bb01df6 /cpp/src/qpid/broker/Queue.h
parentd67b869a335e14a6713fcf59cb65b0f05669bb40 (diff)
downloadqpid-python-5801ede4cd403953c0b809c8b2efdbc77fe0e371.tar.gz
remove looping for position search and replace with stl algorithms for better performance
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.h')
-rw-r--r--cpp/src/qpid/broker/Queue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h
index 5d9fbebc7d..f0d02b8cad 100644
--- a/cpp/src/qpid/broker/Queue.h
+++ b/cpp/src/qpid/broker/Queue.h
@@ -148,6 +148,8 @@ namespace qpid {
}
}
}
+
+ Messages::iterator findAt(framing::SequenceNumber pos);
public:
@@ -221,6 +223,7 @@ namespace qpid {
uint32_t move(const Queue::shared_ptr destq, uint32_t qty);
QPID_BROKER_EXTERN uint32_t getMessageCount() const;
+ QPID_BROKER_EXTERN uint32_t getEnqueueCompleteMessageCount() const;
QPID_BROKER_EXTERN uint32_t getConsumerCount() const;
inline const string& getName() const { return name; }
bool isExclusiveOwner(const OwnershipToken* const o) const;