diff options
| author | Robert Gemmell <robbie@apache.org> | 2009-08-10 15:01:01 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2009-08-10 15:01:01 +0000 |
| commit | 9d4cbbe253442fc625a4d2bf61314df7fa26e842 (patch) | |
| tree | 547cd4688dee5a38e0db52826163dc26f52488f0 /qpid/java/management/common | |
| parent | 49ec229422b9326fe20c533d775fbdf5bb72b654 (diff) | |
| download | qpid-python-9d4cbbe253442fc625a4d2bf61314df7fa26e842.tar.gz | |
QPID-2018: Updated AMQQueueMBean to make use of the AMQQueue clearQueue return value to report the number of messages deleted. Updated management console accordingly, also indicating that it is only non-acquired messaes that are cleared
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@802819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/management/common')
| -rw-r--r-- | qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java b/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java index abcbaa8693..ff4edb4ddd 100644 --- a/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java +++ b/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java @@ -291,14 +291,18 @@ public interface ManagedQueue void deleteMessageFromTop() throws IOException, JMException; /** - * Clears the queue by deleting all the undelivered messages from the queue. + * Clears the queue by deleting all the messages from the queue that have not been acquired by consumers" + * + * Since Qpid JMX API 1.3 this returns the number of messages deleted. Prior to this, the return type was void. + * @return the number of messages deleted * @throws IOException * @throws JMException */ @MBeanOperation(name="clearQueue", - description="Clears the queue by deleting all the undelivered messages from the queue", + description="Clears the queue by deleting all the messages from the queue " + + "that have not been acquired by consumers", impact= MBeanOperationInfo.ACTION) - void clearQueue() throws IOException, JMException; + Long clearQueue() throws IOException, JMException; /** * Moves the messages in given range of message Ids to given Queue. QPID-170 |
