Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • maximumRedeliveries=5
  • initialRedeliveryDelay=1000L (1 second)
  • maximumRedeliveryDelay = 60 * 1000L (60 seconds, new option in Camel 1.4)
  • And the exponential backoff and collision avoidance is turned off.
  • The retriesExhaustedLogLevel and retryAttemptedLogLevel are set to LoggingLevel.ERROR

The maximum redeliver delay ensures that a delay is never longer than the value, default 1 minute. This can happen if you turn on the exponential backoff.

The maximum redeliveries is the number of re delivery attempts. By default Camel will try to process the exchange 1 + 5 times. 1 time for the normal attempt and then 5 attempts as redeliveries.
Setting the maximumRedeliveries to a negative value such as -1 will then always redelivery (unlimited).
Setting the maximumRedeliveries to 0 will disable any re delivery attempt.

Camel will log delivery failures at the ERROR logging level by default. You can change this by specifying retriesExhaustedLogLevel and/or retryAttemptedLogLevel. See ExceptionBuilderWithRetryLoggingLevelSetTest for an example.

Redelivery header

When a message is redelivered the DeadLetterChannel will append a customizable header to the message to indicate how many times its been redelivered. The default value is org.apache.camel.redeliveryCount.
The header org.apache.camel.Redelivered contains a boolean if the message is redelivered or not.

...