public interface ConsumerEventListener extends Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
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–2019 Apache Software Foundation. All rights reserved.