Example #1
0
 public void shutdown() {
   hermesMetrics.unregisterOutputRateGauge(subscription.getTopicName(), subscription.getName());
   rateLimitSupervisor.unregister(this);
 }
Example #2
0
 public void initialize() {
   adjustConsumerRate();
   hermesMetrics.registerOutputRateGauge(
       subscription.getTopicName(), subscription.getName(), () -> rateLimiter.getRate());
   rateLimitSupervisor.register(this);
 }