Interface ConsumerEventListener

  • All Superinterfaces:
    java.io.Serializable

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

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • 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