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