[ https://issues.apache.org/jira/browse/CAMEL-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062701#comment-13062701 ]
Claus Ibsen commented on CAMEL-3364: ------------------------------------ This is a bit more complicated as the error handler has an internal thread pool where it keeps delayed exchanges tasks that should be redelivered in the future. So on shutdown we need to flush those. And we need options so the end user can decide what to do such as (discard, or flush). There is another ticket about adding a flush option to the aggregator. So touch base with that as the option is similar and we may need some generic option in the DSL, to reuse > Add option on error handler to instruct it should stop redelivery during > shutdown of Camel > ------------------------------------------------------------------------------------------ > > Key: CAMEL-3364 > URL: https://issues.apache.org/jira/browse/CAMEL-3364 > Project: Camel > Issue Type: New Feature > Components: camel-core > Affects Versions: 2.5.0 > Reporter: Claus Ibsen > Fix For: 3.0.0 > > > If you shutdown Camel and have error handler configured to execute > redeliveries with delay. Then you may want the error handler to exhaust and > give up if you shutdown a route. Currently the error handler will continue > until its done during a shutdown. > So end users who have very long delays then they may want to just give up > asap and shutdown faster. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira