public class KafkaLatestCommit extends ContextHolder implements KafkaCommitHandler
This handler is the default when `enable.auto.commit` is `false`. This strategy provides at-least-once delivery if the channel processes the message without performing any asynchronous processing.
This strategy should not be used on high-load as offset commit is expensive.
To use set `commit-strategy` to `latest`.
KafkaCommitHandler.Strategy
context, vertx
Constructor and Description |
---|
KafkaLatestCommit(io.vertx.mutiny.core.Vertx vertx,
KafkaConnectorIncomingConfiguration configuration,
ReactiveKafkaConsumer<?,?> consumer) |
Modifier and Type | Method and Description |
---|---|
<K,V> CompletionStage<Void> |
handle(IncomingKafkaRecord<K,V> record) |
capture, getContext, runOnContext, runOnContextAndAwait
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
partitionsAssigned, partitionsRevoked, received, terminate
public KafkaLatestCommit(io.vertx.mutiny.core.Vertx vertx, KafkaConnectorIncomingConfiguration configuration, ReactiveKafkaConsumer<?,?> consumer)
public <K,V> CompletionStage<Void> handle(IncomingKafkaRecord<K,V> record)
handle
in interface KafkaCommitHandler
Copyright © 2018–2021 SmallRye. All rights reserved.