public interface KafkaBindingRebalanceListener
Modifier and Type | Method and Description |
---|---|
default void |
onPartitionsAssigned(String bindingName,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
Collection<org.apache.kafka.common.TopicPartition> partitions,
boolean initial)
Invoked when partitions are initially assigned or after a rebalance.
|
default void |
onPartitionsRevokedAfterCommit(String bindingName,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
Collection<org.apache.kafka.common.TopicPartition> partitions)
Invoked by the container after any pending offsets are committed.
|
default void |
onPartitionsRevokedBeforeCommit(String bindingName,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
Collection<org.apache.kafka.common.TopicPartition> partitions)
Invoked by the container before any pending offsets are committed.
|
default void onPartitionsRevokedBeforeCommit(String bindingName, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, Collection<org.apache.kafka.common.TopicPartition> partitions)
bindingName
- the name of the binding.consumer
- the consumer.partitions
- the partitions.default void onPartitionsRevokedAfterCommit(String bindingName, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, Collection<org.apache.kafka.common.TopicPartition> partitions)
bindingName
- the name of the binding.consumer
- the consumer.partitions
- the partitions.default void onPartitionsAssigned(String bindingName, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, Collection<org.apache.kafka.common.TopicPartition> partitions, boolean initial)
bindingName
- the name of the binding.consumer
- the consumer.partitions
- the partitions.initial
- true if this is the initial assignment on the current thread.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.