diff options
Diffstat (limited to 'cpp/src/qpid/client/LocalQueue.cpp')
-rw-r--r-- | cpp/src/qpid/client/LocalQueue.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/LocalQueue.cpp b/cpp/src/qpid/client/LocalQueue.cpp index f44a04837b..951996f005 100644 --- a/cpp/src/qpid/client/LocalQueue.cpp +++ b/cpp/src/qpid/client/LocalQueue.cpp @@ -47,11 +47,18 @@ Message LocalQueue::pop() { void LocalQueue::setAckPolicy(AckPolicy a) { autoAck=a; } -bool LocalQueue::empty() +bool LocalQueue::empty() const { if (!queue) throw ClosedException(); - return queue->isEmpty(); + return queue->empty(); +} + +size_t LocalQueue::size() const +{ + if (!queue) + throw ClosedException(); + return queue->size(); } }} // namespace qpid::client |