Class ClusterAssignmentCache

java.lang.Object
pl.allegro.tech.hermes.consumers.supervisor.workload.ClusterAssignmentCache

public class ClusterAssignmentCache extends Object
  • Constructor Details

    • ClusterAssignmentCache

      public ClusterAssignmentCache(org.apache.curator.framework.CuratorFramework curator, String clusterName, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, SubscriptionIds subscriptionIds, ConsumerNodesRegistry consumerNodesRegistry)
  • Method Details

    • refresh

      public void refresh()
    • createSnapshot

      public SubscriptionAssignmentView createSnapshot()
    • isAssignedTo

      public boolean isAssignedTo(String consumerId, pl.allegro.tech.hermes.api.SubscriptionName subscription)
    • getSubscriptionConsumers

      public Map<pl.allegro.tech.hermes.api.SubscriptionName,Set<String>> getSubscriptionConsumers()
    • getAssignedConsumers

      public Set<String> getAssignedConsumers()
    • getConsumerSubscriptions

      public Set<pl.allegro.tech.hermes.api.SubscriptionName> getConsumerSubscriptions(String consumerId)