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 Summary
ConstructorsConstructorDescriptionConsumerAssignmentCache(org.apache.curator.framework.CuratorFramework curator, String consumerId, String clusterName, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, SubscriptionIds subscriptionIds) -
Method Summary
Modifier and TypeMethodDescriptionSet<pl.allegro.tech.hermes.api.SubscriptionName> booleanisAssignedTo(pl.allegro.tech.hermes.api.SubscriptionName subscription) voidvoidvoidstart()voidstop()
-
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
- Throws:
Exception
-
stop
- Throws:
Exception
-
isAssignedTo
public boolean isAssignedTo(pl.allegro.tech.hermes.api.SubscriptionName subscription) -
registerAssignmentCallback
-
getConsumerSubscriptions
-
nodeChanged
public void nodeChanged()- Specified by:
nodeChangedin interfaceorg.apache.curator.framework.recipes.cache.NodeCacheListener
-