diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2009-03-25 18:36:47 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2009-03-25 18:36:47 +0000 |
| commit | 12111db2a9f671a5bed6b3b2ceb3e4c6c3a9cb18 (patch) | |
| tree | 05acc00260609bdcb551f69c1dabe76938d6c82d /java/broker/src/main | |
| parent | 2d716942ffd99eb04a723ceb43709305a2eb2244 (diff) | |
| download | qpid-python-12111db2a9f671a5bed6b3b2ceb3e4c6c3a9cb18.tar.gz | |
QPID-1735 : Removed duplicated methods with differing functionality that was causing FtD to fail. Annoyingly the tests work as they used the method with the extra functionality.
Commit from 0.5-release : r758382
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@758395 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker/src/main')
| -rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java | 9 | ||||
| -rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java | 7 |
2 files changed, 6 insertions, 10 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java b/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java index 7fc5df4e9e..f22220ada9 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java +++ b/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java @@ -170,14 +170,15 @@ public interface QueueEntry extends Comparable<QueueEntry>, Filterable<AMQExcept boolean isDeleted(); boolean acquiredBySubscription(); - - void setDeliveredToSubscription(); - + /** * Called when this message is delivered to a consumer. (used to implement the 'immediate' flag functionality). * And for selector efficiency. + * + * This is now also used to unload the message if this entry is on a flowed queue. As a result this method should + * only be called after the message has been sent. */ - public void setDeliveredToConsumer(); + void setDeliveredToSubscription(); void release(); diff --git a/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java b/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java index 715dd0c385..1a3e08ab5c 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java +++ b/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java @@ -158,7 +158,7 @@ public class QueueEntryImpl implements QueueEntry return (_flags & DELIVERED_TO_CONSUMER) != 0; } - public void setDeliveredToConsumer() + public void setDeliveredToSubscription() { _flags |= DELIVERED_TO_CONSUMER; @@ -223,11 +223,6 @@ public class QueueEntryImpl implements QueueEntry return (_state instanceof SubscriptionAcquiredState); } - public void setDeliveredToSubscription() - { - _flags |= DELIVERED_TO_CONSUMER; - } - public void release() { _stateUpdater.set(this, AVAILABLE_STATE); |
