mirror of https://github.com/apache/kafka.git
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:
parent
269c2407d4
commit
3df46bf4ce
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue