All Known Implementing Classes:
LoggingMeasurementRecorder, MicrometerMeasurementRecorder

public interface MeasurementRecorder
Interface for recording execution time measurements.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    record(MeasurementContext context, Duration duration)
    Records the given duration using the provided measurement context.
  • Method Details

    • record

      void record(MeasurementContext context, Duration duration)
      Records the given duration using the provided measurement context.
      Parameters:
      context - the measurement context
      duration - the elapsed time to record