예제 #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);
 }