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