From 74efb78118ccbac87face808290e2ff1e1d40f1a Mon Sep 17 00:00:00 2001 From: Bhupendra Bhusman Bhardwaj Date: Wed, 7 Feb 2007 11:27:15 +0000 Subject: QPID-170 Management feature added - moving messages from one Queue to another git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@504507 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/qpid/util/ConcurrentLinkedQueueAtomicSize.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'qpid/java/common') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/util/ConcurrentLinkedQueueAtomicSize.java b/qpid/java/common/src/main/java/org/apache/qpid/util/ConcurrentLinkedQueueAtomicSize.java index c2d758611d..c4d7683a02 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/util/ConcurrentLinkedQueueAtomicSize.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/util/ConcurrentLinkedQueueAtomicSize.java @@ -55,4 +55,16 @@ public class ConcurrentLinkedQueueAtomicSize extends ConcurrentLinkedQueue return e; } + + @Override + public boolean remove(Object o) + { + if (super.remove(o)) + { + _size.decrementAndGet(); + return true; + } + + return false; + } } -- cgit v1.2.1