Module lettuce.core

Interface MetricCollector<T>

Type Parameters:
T - data type of the metrics
All Known Subinterfaces:
CommandLatencyCollector
All Known Implementing Classes:
DefaultCommandLatencyCollector

public interface MetricCollector<T>
Generic metrics collector interface. A metrics collector collects metrics and emits metric events.
Since:
3.4
Author:
Mark Paluch
  • Method Summary

    Modifier and Type Method Description
    T retrieveMetrics()
    Returns the collected/aggregated metrics.
    void shutdown()
    Shut down the metrics collector.
  • Method Details

    • shutdown

      void shutdown()
      Shut down the metrics collector.
    • retrieveMetrics

      T retrieveMetrics()
      Returns the collected/aggregated metrics.
      Returns:
      the the collected/aggregated metrics