[ 
https://issues.apache.org/jira/browse/CAMEL-18013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-18013:
--------------------------------
    Priority: Minor  (was: Major)

> camel-resume-api: pause API should allow finer control for pausable exceptions
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-18013
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18013
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-resume-api
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Minor
>             Fix For: Future
>
>
> I think we should be able to allow finer control of which exceptions can 
> trigger a pause and which doesn't. For instance, we should be able to do 
> something like:
>  
>  
> {code:java}
> onException(SomeException.class)
>        .pausable(consumerListener, o -> canContinue());
> from(from).routeId("pausable-it")
>      .process(exchange -> LOG.info("Got record from Kafka: {}", 
> exchange.getMessage().getBody()))
>      .to(intermediate);
> {code}
> So that if AnotherException is thrown, the consumer does not pause.
> Note: those using the circuit breaker can already filter unwanted exceptions 
> via the event publisher - although, it is not very elegant.



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

Reply via email to