Interface MessageHandler<K,V>

Type Parameters:
K - key class
V - value class
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 MessageHandler<K,V>
Handler for consumer record processing. The handler includes the business logic that should be applied on consumed messages. Be aware that the key or value can be null if the WrappedNoSerializationErrorDeserializer is used.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> consumerRecord)
     
  • Method Details

    • handle

      void handle(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> consumerRecord)