KAFKA-2347: Add setConsumerRebalanceListener method to ZookeeperConsumerConnector java api; reviewed by Jiangjie Qin, Ismael Juma, Grant Henke and Guozhang Wang

This commit is contained in:
Ashish Singh 2015-07-28 14:27:35 -07:00 committed by Guozhang Wang
parent 269c2407d4
commit 3df46bf4ce
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ public interface ConsumerConnector {
*/
public void commitOffsets(Map<TopicAndPartition, OffsetAndMetadata> offsetsToCommit, boolean retryOnFailure);
/**
* Wire in a consumer rebalance listener to be executed when consumer rebalance occurs.
* @param listener The consumer rebalance listener to wire in
*/
public void setConsumerRebalanceListener(ConsumerRebalanceListener listener);
/**
* Shut down the connector
*/