[ 
https://issues.apache.org/jira/browse/CAMEL-20744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846582#comment-17846582
 ] 

Bert Speckels commented on CAMEL-20744:
---------------------------------------

In this case, an ongoing retry should be terminated immediately. Since the 
waiting time until the next redelivery is (presumably) implemented by a 
Thread.sleep, this would have to be interrupted.

A bit of background: This is important if the sending system (e.g. RabbitMQ) 
needs feedback when the message stops being delivered. In the case of RabbitMQ, 
for example, the message is then put back into the queue (as 'ready') to be 
delivered again the next time the route is available.

> camel-core - Error handler redelivery to support option to break out if 
> stopping
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-20744
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20744
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.x
>
>
> We can maybe add an option to error handler / onException
> retryWhileStopping = true|false
> This means that Camel will stop doing retries/redeliveries when CamelContext 
> is stopping / or that the current route is being stopped.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to