summaryrefslogtreecommitdiff
path: root/qpid/java/cluster
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2007-05-09 15:33:17 +0000
committerMartin Ritchie <ritchiem@apache.org>2007-05-09 15:33:17 +0000
commit6166e60244233eb113f55f13ad3fa714c019fea5 (patch)
tree8e6d75005f2878c2d28510550df75d8d22e4f1e6 /qpid/java/cluster
parentc3c43aab6e0aa2c2591fdcd364eac184f40c829f (diff)
downloadqpid-python-6166e60244233eb113f55f13ad3fa714c019fea5.tar.gz
Merged revisions 536506 via svnmerge from
https://svn.apache.org/repos/asf/incubator/qpid/branches/M2 ........ r536506 | ritchiem | 2007-05-09 13:32:27 +0100 (Wed, 09 May 2007) | 10 lines QPID-25 TimeToLive Basic implementation. Messages are not automatically purged rather they are checked as they are selected for delivery. If they have expired they are dequeued. AMQChannel - Update to call setExpiration on the message so the time can be adjusted if client & broker clocks are out of sync. AMQMessage - Caches the _expiration time for internal use, adjusted for broker time. This leaves message headers unchanged so receiving client can see actual value requested by producer. ConcurrentSelectorDeliveryManager - Updated to check for expired messages when getNextMessage is called. Immediate messages are NOT expired. Subscription - Added method to getChannel that this Subscription is attatched to so we can retrieve the StoreContext for dequeue-ing the message. TimeToLiveTest - Test of Time to live. Sends 50 msgs. 1 non-timed 48 1 second and 1 non-timed ensure only 2 msgs come back after 2 seconds ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@536567 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/cluster')
-rw-r--r--qpid/java/cluster/src/main/java/org/apache/qpid/server/queue/RemoteSubscriptionImpl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/java/cluster/src/main/java/org/apache/qpid/server/queue/RemoteSubscriptionImpl.java b/qpid/java/cluster/src/main/java/org/apache/qpid/server/queue/RemoteSubscriptionImpl.java
index 42412bebae..e396432cea 100644
--- a/qpid/java/cluster/src/main/java/org/apache/qpid/server/queue/RemoteSubscriptionImpl.java
+++ b/qpid/java/cluster/src/main/java/org/apache/qpid/server/queue/RemoteSubscriptionImpl.java
@@ -23,6 +23,7 @@ package org.apache.qpid.server.queue;
import org.apache.qpid.server.cluster.MemberHandle;
import org.apache.qpid.server.cluster.GroupManager;
import org.apache.qpid.server.cluster.SimpleSendable;
+import org.apache.qpid.server.AMQChannel;
import org.apache.qpid.AMQException;
import java.util.Queue;
@@ -167,4 +168,9 @@ class RemoteSubscriptionImpl implements Subscription, WeightedSubscriptionManage
return new Object();
}
+ public AMQChannel getChannel()
+ {
+ return null;
+ }
+
}