Class ConsumerAssignmentCache

java.lang.Object
pl.allegro.tech.hermes.consumers.supervisor.workload.ConsumerAssignmentCache
All Implemented Interfaces:
org.apache.curator.framework.recipes.cache.NodeCacheListener

public class ConsumerAssignmentCache extends Object implements org.apache.curator.framework.recipes.cache.NodeCacheListener
  • Constructor Details

    • ConsumerAssignmentCache

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

    • start

      public void start() throws Exception
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Throws:
      Exception
    • isAssignedTo

      public boolean isAssignedTo(pl.allegro.tech.hermes.api.SubscriptionName subscription)
    • registerAssignmentCallback

      public void registerAssignmentCallback(SubscriptionAssignmentAware callback)
    • getConsumerSubscriptions

      public Set<pl.allegro.tech.hermes.api.SubscriptionName> getConsumerSubscriptions()
    • nodeChanged

      public void nodeChanged()
      Specified by:
      nodeChanged in interface org.apache.curator.framework.recipes.cache.NodeCacheListener