接口 ConsumerEventListener
- 所有超级接口:
Serializable
Listener on the consumer state changes.
-
方法概要
修饰符和类型方法说明voidbecameActive(Consumer<?> consumer, int partitionId) Notified when the consumer group is changed, and the consumer becomes the active consumer.voidbecameInactive(Consumer<?> consumer, int partitionId) Notified when the consumer group is changed, and the consumer is still inactive or becomes inactive.
-
方法详细资料
-
becameActive
Notified when the consumer group is changed, and the consumer becomes the active consumer.- 参数:
consumer- the consumer that originated the eventpartitionId- the id of the partition that became active
-
becameInactive
Notified when the consumer group is changed, and the consumer is still inactive or becomes inactive.- 参数:
consumer- the consumer that originated the eventpartitionId- the id of the partition that became inactive
-