All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.management.infrastructure.metrics.NoOpSubscriptionLagSource Maven / Gradle / Ivy

package pl.allegro.tech.hermes.management.infrastructure.metrics;

import pl.allegro.tech.hermes.api.MetricLongValue;
import pl.allegro.tech.hermes.api.TopicName;
import pl.allegro.tech.hermes.management.domain.subscription.SubscriptionLagSource;

public class NoOpSubscriptionLagSource implements SubscriptionLagSource {
  @Override
  public MetricLongValue getLag(TopicName topicName, String subscriptionName) {
    return MetricLongValue.of(-1);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy