@InterfaceAudience.Public @InterfaceStability.Stable public interface ConsumerEventListener extends Serializable
| Modifier and Type | Method and 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.
|
void becameActive(Consumer<?> consumer, int partitionId)
consumer - the consumer that originated the eventpartitionId - the id of the partition that became activevoid becameInactive(Consumer<?> consumer, int partitionId)
consumer - the consumer that originated the eventpartitionId - the id of the partition that became inactiveCopyright © 2017–2021 Apache Software Foundation. All rights reserved.