Interface ConsumerEventListener

All Superinterfaces:
Serializable

@Public @Stable public interface ConsumerEventListener extends Serializable
Listener on the consumer state changes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    becameActive(Consumer<?> consumer, int partitionId)
    Notified when the consumer group is changed, and the consumer becomes the active consumer.
    void
    becameInactive(Consumer<?> consumer, int partitionId)
    Notified when the consumer group is changed, and the consumer is still inactive or becomes inactive.
  • Method Details

    • becameActive

      void becameActive(Consumer<?> consumer, int partitionId)
      Notified when the consumer group is changed, and the consumer becomes the active consumer.
      Parameters:
      consumer - the consumer that originated the event
      partitionId - the id of the partition that became active
    • becameInactive

      void becameInactive(Consumer<?> consumer, int partitionId)
      Notified when the consumer group is changed, and the consumer is still inactive or becomes inactive.
      Parameters:
      consumer - the consumer that originated the event
      partitionId - the id of the partition that became inactive