Class KafkaIgnoreCommit
java.lang.Object
io.smallrye.reactive.messaging.kafka.commit.KafkaIgnoreCommit
- All Implemented Interfaces:
KafkaCommitHandler
Ignores an ACK and does not commit any offsets.
This handler is the default when `enable.auto.commit` is `true`.
When `enable.auto.commit` is `true` this strategy DOES NOT guarantee at-least-once delivery.
To use set `commit-strategy` to `ignore`.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.smallrye.reactive.messaging.kafka.commit.KafkaCommitHandler
KafkaCommitHandler.Strategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K,
V> io.smallrye.mutiny.Uni<Void> handle
(IncomingKafkaRecord<K, V> record) Handle message acknowledgmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.smallrye.reactive.messaging.kafka.commit.KafkaCommitHandler
partitionsAssigned, partitionsRevoked, received, terminate
-
Constructor Details
-
KafkaIgnoreCommit
public KafkaIgnoreCommit()
-
-
Method Details
-
handle
Description copied from interface:KafkaCommitHandler
Handle message acknowledgment- Specified by:
handle
in interfaceKafkaCommitHandler
- Type Parameters:
K
- type of record keyV
- type of record value- Parameters:
record
- incoming Kafka record- Returns:
- a completion stage completed when the message is acknowledged.
-