Interface ConsumerListener<T>

Type Parameters:
T - the type of the value in the consumer records being handled

public interface ConsumerListener<T>
Interface for classes that handle the records polled by a kafka Consumer.
Author:
Joey Jackson (jjackson at dropbox dot com)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Throwable throwable)
    Handles a throwable from the consumer.
    void
    handle(org.apache.kafka.clients.consumer.ConsumerRecord<?,T> record)
    Handles a consumer record from the consumer.
  • Method Details

    • handle

      void handle(org.apache.kafka.clients.consumer.ConsumerRecord<?,T> record)
      Handles a consumer record from the consumer.
      Parameters:
      record - the consumer record to be handled
    • handle

      void handle(Throwable throwable)
      Handles a throwable from the consumer.
      Parameters:
      throwable - the throwable to be handled