summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src/main
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-03-25 18:36:47 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-03-25 18:36:47 +0000
commit19de7a84b5fae3b977593f0fb81095c1c2c78f55 (patch)
treedc9b7f67f374152c2c61e1bf80f56d60f821cafc /qpid/java/broker/src/main
parentaf4d1bb1ec4a47a927aa9cf3d7fbad7491e99dae (diff)
downloadqpid-python-19de7a84b5fae3b977593f0fb81095c1c2c78f55.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@758395 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker/src/main')
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java9
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java7
2 files changed, 6 insertions, 10 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java
index 7fc5df4e9e..f22220ada9 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntry.java
+++ b/qpid/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/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java
index 715dd0c385..1a3e08ab5c 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/QueueEntryImpl.java
+++ b/qpid/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);