All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.management.infrastructure.kafka.MultiDCOffsetChangeSummary Maven / Gradle / Ivy

There is a newer version: 2.10.4
Show newest version
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