Package org.apache.pulsar.client.api
Interface ConsumerEventListener
- All Superinterfaces:
Serializable
Listener on the consumer state changes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbecameActive(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 Details
-
becameActive
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
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
-