Class ZookeeperConsumerNodeLoadRegistry
java.lang.Object
pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.ZookeeperConsumerNodeLoadRegistry
- All Implemented Interfaces:
SubscriptionLoadRecordersRegistry,ConsumerNodeLoadRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionZookeeperConsumerNodeLoadRegistry(org.apache.curator.framework.CuratorFramework curator, SubscriptionIds subscriptionIds, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, String currentConsumerId, String clusterName, Duration interval, pl.allegro.tech.hermes.common.concurrent.ExecutorServiceFactory executorServiceFactory, Clock clock, pl.allegro.tech.hermes.common.metric.MetricsFacade metrics, int consumerLoadEncoderBufferSizeBytes) -
Method Summary
-
Constructor Details
-
ZookeeperConsumerNodeLoadRegistry
public ZookeeperConsumerNodeLoadRegistry(org.apache.curator.framework.CuratorFramework curator, SubscriptionIds subscriptionIds, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, String currentConsumerId, String clusterName, Duration interval, pl.allegro.tech.hermes.common.concurrent.ExecutorServiceFactory executorServiceFactory, Clock clock, pl.allegro.tech.hermes.common.metric.MetricsFacade metrics, int consumerLoadEncoderBufferSizeBytes)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceConsumerNodeLoadRegistry
-
stop
public void stop()- Specified by:
stopin interfaceConsumerNodeLoadRegistry
-
get
public pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.ConsumerNodeLoad get(String consumerId) - Specified by:
getin interfaceConsumerNodeLoadRegistry
-
register
public SubscriptionLoadRecorder register(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName) - Specified by:
registerin interfaceSubscriptionLoadRecordersRegistry
-