Interface KafkaRecordKeyValueWithExceptionHandler<K,V>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface KafkaRecordKeyValueWithExceptionHandler<K,V>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(K key, V value, Exception exception)
    Handles record by its key and value
  • Method Details

    • handle

      void handle(@Nullable K key, @Nullable V value, @Nullable Exception exception)
      Handles record by its key and value
      Parameters:
      key - of ConsumerRecord.key()
      value - of ConsumerRecord.value()
      exception - Exception thrown by ConsumerRecord.key() or ConsumerRecord.value()