orpiske opened a new pull request #6947: URL: https://github.com/apache/camel/pull/6947
This is a proposal for improvements for the resume API. This removes the need for specific options per component and introduces a new API for resuming at the route level. This is not ready yet, but I am sharing it with the community in case anyone wants to provide comments, suggest improvements, concerns, etc ``` from("route") .process(this::process) .resumable().header("CamelOffset").resumableStrategyRef("testResumeStrategy"); ``` This API has 3 major parts: * One that provides an interface for integrations to set the last offset (by setting an specific header) * Another that includes a processor to update the offset at the end of processing * Another that includes an abstract Kafka resumable strategy the allows sending offsets to Kafka In addition to any potential comment/suggestion here, what's missing for merge: 1. Documentation 2. Examples 3. Reliability improvements for the Kafka resumable strategy (it's still very simple) - though I might do this separately. <!-- Uncomment and fill this section if your PR is not trivial - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes. - [ ] Each commit in the pull request should have a meaningful subject line and body. - [ ] If you're unsure, you can format the pull request title like `[CAMEL-XXX] Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the appropriate JIRA issue. - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [ ] Run `mvn clean install -Psourcecheck` in your module with source check enabled to make sure basic checks pass and there are no checkstyle violations. A more thorough check will be performed on your pull request automatically. Below are the contribution guidelines: https://github.com/apache/camel/blob/main/CONTRIBUTING.md --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org