Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18013

camel-resume-api: pause API should allow finer control for pausable exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • camel-resume-api
    • None
    • Unknown

    Description

      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:

       

       

      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);
      

      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.

      Attachments

        Activity

          People

            orpiske Otavio Rodolfo Piske
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: