On Tue, Feb 8, 2011 at 8:56 PM, swwyatt <[email protected]> wrote: > > I am using this policy: > > <camel:redeliveryPolicy maximumRedeliveries="3" > delayPattern="0:1000;1:10000;2:30000"/> > > My observation is that the first delay is 10 seconds, not 1 second. The next > 2 deliveries have a 30 second delay. Is delay pattern 0 based? The > documentation shows it this way.
Ah yeah its a flaw in the documentation. It should be 1 based as its activated for the 1st redelivery attempt. (eg at index 1 for processing, index 0 is the first process which is not a redelivery). So you should use: delayPattern="1:1000;2:10000;3:30000"/> > -- > View this message in context: > http://camel.465427.n5.nabble.com/Redelivery-policy-and-delay-pattern-tp3376518p3376518.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
