You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/07/01 13:37:52 UTC
[jira] Updated: (CAMEL-2889) Redelivery policy's retryUntil option
should be renamed as retryWhile
[ https://issues.apache.org/activemq/browse/CAMEL-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-2889:
-------------------------------
Description: The semantics of {{retryUntil}} are a bit counter-intuitive. I would naturally expect retryUntil(predicate) to mean _retry until predicate is true_, but it actually means _retry until predicate is false_. If you change the name of the option to {{retryWhile}}, you would get the natural interpretation _retry while predicate is true_. (was: The semantics of {{retryUnti}}l are a bit counter-intuitive. I would naturally expect retryUntil(predicate) to mean _retry until predicate is true_, but it actually means _retry until predicate is false_. If you change the name of the option to {{retryWhile}}, you would get the natural interpretation _retry while predicate is true_.)
> Redelivery policy's retryUntil option should be renamed as retryWhile
> ---------------------------------------------------------------------
>
> Key: CAMEL-2889
> URL: https://issues.apache.org/activemq/browse/CAMEL-2889
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core, camel-spring
> Affects Versions: 2.3.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.4.0
>
>
> The semantics of {{retryUntil}} are a bit counter-intuitive. I would naturally expect retryUntil(predicate) to mean _retry until predicate is true_, but it actually means _retry until predicate is false_. If you change the name of the option to {{retryWhile}}, you would get the natural interpretation _retry while predicate is true_.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.