Class ConsumerAssignmentCache

  • All Implemented Interfaces:
    org.apache.curator.framework.recipes.cache.NodeCacheListener

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

      • ConsumerAssignmentCache

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

      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isAssignedTo

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

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

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