Interface LatencyMetricsCollector<I extends LatencyMetricsIdentifier>

All Superinterfaces:
MetricsCollector
All Known Implementing Classes:
AbstractLatencyMetricsCollector, NetworkLatencyMetricsCollector

public interface LatencyMetricsCollector<I extends LatencyMetricsIdentifier>
extends MetricsCollector
A collector which collects and emits latency measurements.
Since:
1.2.0
Author:
Michael Nitschinger
  • Method Details

    • record

      void record​(I identifier, long latency)
      Records a latency for the given identifier.
      Parameters:
      identifier - the unique identifier to use.
      latency - the latency to record for it.
    • config

      Description copied from interface: MetricsCollector
      Its high-level configuration.
      Specified by:
      config in interface MetricsCollector