
pl.allegro.tech.hermes.management.infrastructure.kafka.MultiDCOffsetChangeSummary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
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