Class ClusterAssignmentCache
java.lang.Object
pl.allegro.tech.hermes.consumers.supervisor.workload.ClusterAssignmentCache
-
Constructor Summary
ConstructorsConstructorDescriptionClusterAssignmentCache(org.apache.curator.framework.CuratorFramework curator, String clusterName, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, SubscriptionIds subscriptionIds, ConsumerNodesRegistry consumerNodesRegistry) -
Method Summary
Modifier and TypeMethodDescriptionSet<pl.allegro.tech.hermes.api.SubscriptionName> getConsumerSubscriptions(String consumerId) booleanisAssignedTo(String consumerId, pl.allegro.tech.hermes.api.SubscriptionName subscription) voidrefresh()
-
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
-
isAssignedTo
public boolean isAssignedTo(String consumerId, pl.allegro.tech.hermes.api.SubscriptionName subscription) -
getSubscriptionConsumers
-
getAssignedConsumers
-
getConsumerSubscriptions
-