
pl.allegro.tech.hermes.management.infrastructure.kafka.MultiDCOffsetChangeSummary Maven / Gradle / Ivy
package pl.allegro.tech.hermes.management.infrastructure.kafka;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.google.common.collect.ImmutableMap;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset;
public class MultiDCOffsetChangeSummary {
private Map> partitionOffsetListPerBrokerName = new HashMap<>();
public MultiDCOffsetChangeSummary() {}
@JsonAnySetter
public void addPartitionOffsetList(
String clusterName, List partitionOffsetChange) {
partitionOffsetListPerBrokerName.put(clusterName, partitionOffsetChange);
}
@JsonAnyGetter
public Map> getPartitionOffsetListPerBrokerName() {
return ImmutableMap.copyOf(partitionOffsetListPerBrokerName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy