Package com.linkedin.davinci.consumer
Class ChangelogVersionSwapNotification
java.lang.Object
com.linkedin.davinci.consumer.ChangelogVersionSwapNotification
Reports that some partitions of a
VeniceChangelogConsumer are now consumed from getNewTopic().
Delivered to the listener registered with VeniceChangelogConsumer.setVersionSwapListener(java.util.function.Consumer<com.linkedin.davinci.consumer.ChangelogVersionSwapNotification>).-
Constructor Summary
ConstructorsConstructorDescriptionChangelogVersionSwapNotification(String newTopic, Set<Integer> partitions, Map<Integer, VeniceChangeCoordinate> newTopicPositions) -
Method Summary
-
Constructor Details
-
ChangelogVersionSwapNotification
-
-
Method Details
-
getNewTopic
- Returns:
- the topic the partitions are now consumed from
-
getPartitions
- Returns:
- the partitions of this consumer now consumed from
getNewTopic()
-
getNewTopicPositions
- Returns:
- the exact position on
getNewTopic()the consumer moved each partition to. Partitions subscribed at a symbolic position (e.g. byVeniceChangelogConsumer.subscribe(java.util.Set<java.lang.Integer>)) have no entry.
-
equals
-
hashCode
public int hashCode() -
toString
-