Package org.apache.pulsar.client.api
Interface ConsumerEventListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
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 eventpartitionId- 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 eventpartitionId- the id of the partition that became inactive
-
-