Class ZookeeperConsumerNodeLoadRegistry
- java.lang.Object
-
- pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.ZookeeperConsumerNodeLoadRegistry
-
- All Implemented Interfaces:
SubscriptionLoadRecordersRegistry,ConsumerNodeLoadRegistry
public class ZookeeperConsumerNodeLoadRegistry extends java.lang.Object implements ConsumerNodeLoadRegistry
-
-
Constructor Summary
Constructors Constructor Description ZookeeperConsumerNodeLoadRegistry(org.apache.curator.framework.CuratorFramework curator, SubscriptionIds subscriptionIds, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, java.lang.String currentConsumerId, java.lang.String clusterName, java.time.Duration interval, pl.allegro.tech.hermes.common.concurrent.ExecutorServiceFactory executorServiceFactory, java.time.Clock clock, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, int consumerLoadEncoderBufferSizeBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.ConsumerNodeLoadget(java.lang.String consumerId)SubscriptionLoadRecorderregister(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)voidstart()voidstop()
-
-
-
Constructor Detail
-
ZookeeperConsumerNodeLoadRegistry
public ZookeeperConsumerNodeLoadRegistry(org.apache.curator.framework.CuratorFramework curator, SubscriptionIds subscriptionIds, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths zookeeperPaths, java.lang.String currentConsumerId, java.lang.String clusterName, java.time.Duration interval, pl.allegro.tech.hermes.common.concurrent.ExecutorServiceFactory executorServiceFactory, java.time.Clock clock, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, int consumerLoadEncoderBufferSizeBytes)
-
-
Method Detail
-
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(java.lang.String consumerId)
- Specified by:
getin interfaceConsumerNodeLoadRegistry
-
register
public SubscriptionLoadRecorder register(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)
- Specified by:
registerin interfaceSubscriptionLoadRecordersRegistry
-
-