Interface KafkaFailureHandler
-
- All Known Implementing Classes:
KafkaDeadLetterQueue,KafkaFailStop,KafkaIgnoreFailure
@Experimental("Experimental API") public interface KafkaFailureHandlerKafka Failure handling strategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceKafkaFailureHandler.FactoryFactory interface forKafkaFailureHandlerstatic interfaceKafkaFailureHandler.StrategyIdentifiers of default failure strategies
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <K,V>
io.smallrye.mutiny.Uni<Void>handle(IncomingKafkaRecord<K,V> record, Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata)Handle message negative-acknowledgmentdefault voidterminate()Called on channel shutdown
-
-
-
Method Detail
-
handle
<K,V> io.smallrye.mutiny.Uni<Void> handle(IncomingKafkaRecord<K,V> record, Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata)
Handle message negative-acknowledgment- 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.
-
terminate
default void terminate()
Called on channel shutdown
-
-