Croway opened a new pull request, #23144:
URL: https://github.com/apache/camel/pull/23144

   ## Summary
   
   _Claude Code on behalf of Federico Mariani_
   
   Add manual ACK support for the camel-nats JetStream consumer, allowing users 
to control when messages are acknowledged instead of relying on automatic ACK 
on exchange completion.
   
   - New `manualAck` boolean endpoint parameter (default `false`)
   - New `NatsManualAck` interface exposed as `CamelNatsManualAck` message 
header with `ack()`, `nak()`, `nakWithDelay(Duration)`, `term()`, and 
`inProgress()` methods
   - When enabled, the automatic `SynchronizationAdapter` ACK/NAK is skipped; 
if the user doesn't call any method, NATS redelivers after `ackWait` expires
   - Works with both push and pull JetStream subscriptions
   
   Follows the same pattern as camel-kafka's `allowManualCommit` / 
`KafkaManualCommit`.
   
   ## Test plan
   
   - [x] `NatsJetstreamConsumerManualAckIT` — push subscription: manual ack + 
manual nak with redelivery
   - [x] `NatsJetstreamConsumerManualAckPullIT` — pull subscription: same 
scenarios
   
   Jira: https://issues.apache.org/jira/browse/CAMEL-23483


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to