Interface MetricsCollector

All Known Subinterfaces:
LatencyMetricsCollector<I>
All Known Implementing Classes:
AbstractLatencyMetricsCollector, AbstractMetricsCollector, NetworkLatencyMetricsCollector, RuntimeMetricsCollector

public interface MetricsCollector
A generic metrics collector.
Since:
1.2.0
Author:
Michael Nitschinger
  • Method Summary

    Modifier and Type Method Description
    MetricsCollectorConfig config()
    Its high-level configuration.
    boolean isEnabled()
    True if this collector actually emits something.
    boolean shutdown()
    Shuts down the collector (non-reversible) and frees bound resources.
    void triggerEmit()
    Triggers the immediate emission of whatever is currently collected.
  • Method Details

    • config

      Its high-level configuration.
    • shutdown

      boolean shutdown()
      Shuts down the collector (non-reversible) and frees bound resources.
    • isEnabled

      boolean isEnabled()
      True if this collector actually emits something.
    • triggerEmit

      void triggerEmit()
      Triggers the immediate emission of whatever is currently collected. Useful for testing.