You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2008/11/30 03:29:04 UTC

svn commit: r721751 - in /activemq/camel/trunk/camel-core/src: main/java/org/apache/camel/model/ test/java/org/apache/camel/builder/

Author: ningjiang
Date: Sat Nov 29 18:29:04 2008
New Revision: 721751

URL: http://svn.apache.org/viewvc?rev=721751&view=rev
Log:
CAMEL-64 changed the ExceptionType.setDelay() metod name to redeliveryDelay

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ExceptionType.java
    activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderTest.java
    activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderWithRetryLoggingLevelSetTest.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ExceptionType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ExceptionType.java?rev=721751&r1=721750&r2=721751&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ExceptionType.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ExceptionType.java Sat Nov 29 18:29:04 2008
@@ -257,7 +257,7 @@
      * @param delay  delay in millis
      * @return the builder
      */
-    public ExceptionType setDelay(long delay) {
+    public ExceptionType redeliveryDelay(long delay) {
         getOrCreateRedeliveryPolicy().delay(delay);
         return this;
     }

Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderTest.java?rev=721751&r1=721750&r2=721751&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderTest.java Sat Nov 29 18:29:04 2008
@@ -166,7 +166,7 @@
                     .to(ERROR_QUEUE);
 
                 onException(IOException.class)
-                    .setDelay(5000L)
+                    .redeliveryDelay(5000L)
                     .maximumRedeliveries(3)
                     .maximumRedeliveryDelay(30000L)
                     .backOffMultiplier(1.0)
@@ -175,13 +175,13 @@
                     .to(ERROR_QUEUE);
 
                 onException(Exception.class)
-                    .setDelay(1000L)
+                    .redeliveryDelay(1000L)
                     .maximumRedeliveries(2)
                     .setHeader(MESSAGE_INFO, constant("Damm just exception"))
                     .to(ERROR_QUEUE);
 
                 onException(MyBaseBusinessException.class)
-                    .setDelay(1000L)
+                    .redeliveryDelay(1000L)
                     .maximumRedeliveries(3)
                     .setHeader(MESSAGE_INFO, constant("Damm my business is not going to well"))
                     .to(BUSINESS_ERROR_QUEUE);

Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderWithRetryLoggingLevelSetTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderWithRetryLoggingLevelSetTest.java?rev=721751&r1=721750&r2=721751&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderWithRetryLoggingLevelSetTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ExceptionBuilderWithRetryLoggingLevelSetTest.java Sat Nov 29 18:29:04 2008
@@ -121,7 +121,7 @@
                 
                 // START SNIPPET: exceptionBuilder1
                 onException(IOException.class)
-                    .setDelay(1000L)
+                    .redeliveryDelay(1000L)
                     .maximumRedeliveries(3)
                     .maximumRedeliveryDelay(10000L)
                     .backOffMultiplier(1.0)