Class MaxRateSupervisor
- java.lang.Object
-
- pl.allegro.tech.hermes.consumers.consumer.rate.maxrate.MaxRateSupervisor
-
- All Implemented Interfaces:
java.lang.Runnable
public class MaxRateSupervisor extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description MaxRateSupervisor(MaxRateParameters maxRateParameters, ClusterAssignmentCache clusterAssignmentCache, MaxRateRegistry maxRateRegistry, ConsumerNodesRegistry consumerNodesRegistry, SubscriptionsCache subscriptionsCache, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, java.time.Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregister(NegotiatedMaxRateProvider maxRateProvider)voidrun()voidstart()voidstop()voidunregister(NegotiatedMaxRateProvider maxRateProvider)
-
-
-
Constructor Detail
-
MaxRateSupervisor
public MaxRateSupervisor(MaxRateParameters maxRateParameters, ClusterAssignmentCache clusterAssignmentCache, MaxRateRegistry maxRateRegistry, ConsumerNodesRegistry consumerNodesRegistry, SubscriptionsCache subscriptionsCache, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, java.time.Clock clock)
-
-
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
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
register
public void register(NegotiatedMaxRateProvider maxRateProvider)
-
unregister
public void unregister(NegotiatedMaxRateProvider maxRateProvider)
-
-