Interface ConsumerProfiler

All Known Implementing Classes:
DefaultConsumerProfiler, NoOpConsumerProfiler

public interface ConsumerProfiler
  • Method Details

    • startMeasurements

      void startMeasurements(String measurement)
    • measure

      void measure(String measurement)
      Measures the execution time of a specific piece of code. The measurement starts with a call to this method, and is terminated by another call to the same method with a different parameter (to keep the measurement continuity), or by calling the flushMeasurements method.
    • startPartialMeasurement

      void startPartialMeasurement(String measurement)
      Measures the same piece of code several times, for example, a method call in the middle of a loop. Default implementation stores individual measurements, as well as their sum. stopPartialMeasurements should be called before measuring again.
    • stopPartialMeasurement

      void stopPartialMeasurement()
    • saveRetryDelay

      void saveRetryDelay(long retryDelay)
    • flushMeasurements

      void flushMeasurements(ConsumerRun consumerRun)