Class NoOpConsumerProfiler
java.lang.Object
pl.allegro.tech.hermes.consumers.consumer.profiling.NoOpConsumerProfiler
- All Implemented Interfaces:
ConsumerProfiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflushMeasurements(ConsumerRun consumerRun) voidMeasures the execution time of a specific piece of code.voidsaveRetryDelay(long retryDelay) voidstartMeasurements(String measurement) voidstartPartialMeasurement(String measurement) Measures the same piece of code several times, for example, a method call in the middle of a loop.void
-
Constructor Details
-
NoOpConsumerProfiler
public NoOpConsumerProfiler()
-
-
Method Details
-
startMeasurements
- Specified by:
startMeasurementsin interfaceConsumerProfiler
-
measure
Description copied from interface:ConsumerProfilerMeasures 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 theflushMeasurementsmethod.- Specified by:
measurein interfaceConsumerProfiler
-
startPartialMeasurement
Description copied from interface:ConsumerProfilerMeasures 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.stopPartialMeasurementsshould be called before measuring again.- Specified by:
startPartialMeasurementin interfaceConsumerProfiler
-
stopPartialMeasurement
public void stopPartialMeasurement()- Specified by:
stopPartialMeasurementin interfaceConsumerProfiler
-
saveRetryDelay
public void saveRetryDelay(long retryDelay) - Specified by:
saveRetryDelayin interfaceConsumerProfiler
-
flushMeasurements
- Specified by:
flushMeasurementsin interfaceConsumerProfiler
-