Class KafkaFailStop
java.lang.Object
io.smallrye.reactive.messaging.kafka.fault.KafkaFailStop
- All Implemented Interfaces:
KafkaFailureHandler
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.smallrye.reactive.messaging.kafka.fault.KafkaFailureHandler
KafkaFailureHandler.Strategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K,V> io.smallrye.mutiny.Uni<Void> handle(IncomingKafkaRecord<K, V> record, Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata) Handle message negative-acknowledgmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.reactive.messaging.kafka.fault.KafkaFailureHandler
terminate
-
Constructor Details
-
KafkaFailStop
-
-
Method Details
-
handle
public <K,V> io.smallrye.mutiny.Uni<Void> handle(IncomingKafkaRecord<K, V> record, Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata) Description copied from interface:KafkaFailureHandlerHandle message negative-acknowledgment- Specified by:
handlein interfaceKafkaFailureHandler- Type Parameters:
K- type of record keyV- type of record value- Parameters:
record- incoming Kafka recordreason- nack reasonmetadata- associated metadata with negative-acknowledgment- Returns:
- a completion stage completed when the message is negative-acknowledgement has completed.
-