Skip to content

Commit

Permalink
Upgrade Camel to version 3.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed Feb 10, 2022
1 parent 80e4782 commit 12d3064
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.component.kafka.KafkaConstants;
import org.apache.camel.component.kafka.KafkaManualCommit;
import org.apache.camel.component.kafka.consumer.KafkaManualCommit;

public class ManualCommit implements Processor {

@Override
public void process(Exchange exchange) throws Exception {
KafkaManualCommit manual = exchange.getMessage().getHeader(KafkaConstants.MANUAL_COMMIT, KafkaManualCommit.class);
if (manual != null) {
manual.commitSync();
manual.commit();
}
}
}

0 comments on commit 12d3064

Please sign in to comment.