sijie commented on a change in pull request #1156: Introduce ConsumerGroupListener for realizing if a consumer is active in a failover subscription group URL: https://github.com/apache/incubator-pulsar/pull/1156#discussion_r167388187
########## File path: pulsar-client/src/main/java/org/apache/pulsar/client/api/ConsumerConfiguration.java ########## @@ -127,6 +129,33 @@ public ConsumerConfiguration setMessageListener(MessageListener messageListener) return this; } + /** + * @return this configured {@link ConsumerGroupListener} for the consumer. + * @see #setConsumerGroupListener(ConsumerGroupListener) + * @since 1.22.0 + */ + public ConsumerGroupListener getConsumerGroupListener() { Review comment: I renamed "ConsumerGroupListener" to "ActiveConsumerListener". I added the logic on pulsar client to fail `subscribe` if a listener is set for non-failover subscription. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services