public interface ConsumerRebalanceListener
ZookeeperConsumerConnector
Modifier and Type | Method and Description |
---|---|
void |
beforeReleasingPartitions(java.util.Map<java.lang.String,java.util.Set<java.lang.Integer>> partitionOwnership)
This method is called after all the fetcher threads are stopped but before the
ownership of partitions are released.
|
void |
beforeStartingFetchers(java.lang.String consumerId,
java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,kafka.consumer.ConsumerThreadId>> globalPartitionAssignment)
This method is called after the new partition assignment is finished but before fetcher
threads start.
|
void beforeReleasingPartitions(java.util.Map<java.lang.String,java.util.Set<java.lang.Integer>> partitionOwnership)
partitionOwnership
- The partition this consumer currently owns.void beforeStartingFetchers(java.lang.String consumerId, java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,kafka.consumer.ConsumerThreadId>> globalPartitionAssignment)
consumerId
- The consumer Id string of the consumer invoking this callback.globalPartitionAssignment
- A Map[topic, Map[Partition, ConsumerThreadId]]. It is the global partition
assignment of this consumer group.