Interface KafkaFailureHandler

    • 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 key
        V - type of record value
        Parameters:
        record - incoming Kafka record
        reason - nack reason
        metadata - 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