Class KafkaIgnoreFailure
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.fault.KafkaIgnoreFailure
-
- All Implemented Interfaces:
KafkaFailureHandler
public class KafkaIgnoreFailure extends Object implements KafkaFailureHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKafkaIgnoreFailure.Factory-
Nested classes/interfaces inherited from interface io.smallrye.reactive.messaging.kafka.fault.KafkaFailureHandler
KafkaFailureHandler.Strategy
-
-
Constructor Summary
Constructors Constructor Description KafkaIgnoreFailure(String channel)
-
Method Summary
All Methods Instance Methods Concrete 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-acknowledgment-
Methods 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.fault.KafkaFailureHandler
terminate
-
-
-
-
Constructor Detail
-
KafkaIgnoreFailure
public KafkaIgnoreFailure(String channel)
-
-
Method Detail
-
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.
-
-