activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r831118 - /activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/RedeliveryPolicyTest.cs
Date Thu, 29 Oct 2009 22:16:00 GMT
Author: tabish
Date: Thu Oct 29 22:15:59 2009
New Revision: 831118

URL: http://svn.apache.org/viewvc?rev=831118&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-137

Added IRedeliveryPolicy to NMS along with a default Redelivery policy for NMS providers to
use in their IConnectionFactory implementations.  Added the use of the default policy to NMS.ActiveMQ
and used that policy to control the redelivery delay in the MessageConsumers rollback method.

Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/RedeliveryPolicyTest.cs

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/RedeliveryPolicyTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/RedeliveryPolicyTest.cs?rev=831118&r1=831117&r2=831118&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/RedeliveryPolicyTest.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/RedeliveryPolicyTest.cs Thu
Oct 29 22:15:59 2009
@@ -96,7 +96,7 @@
             policy.CollisionAvoidancePercent = 10;
 
             // simulate a retry of 10 times
-            var delay = policy.RedeliveryDelay(0);
+            int delay = policy.RedeliveryDelay(0);
             Assert.IsTrue(delay >= 4.5 && delay <= 5.5, "not delay >= 4.5
&& delay <= 5.5 is " + policy.RedeliveryDelay(0));
             delay = policy.RedeliveryDelay(1);
             Assert.IsTrue(delay >= 9 && delay <= 11, "not delay >= 9 &&
delay <= 11 is " + policy.RedeliveryDelay(1));



Mime
View raw message