Package io.quarkus.runtime.metrics
Interface MetricsFactory.TimeRecorder
-
- Enclosing interface:
- MetricsFactory
public static interface MetricsFactory.TimeRecorderA time recorder that tracks elapsed time using incremental updates using a duration with a specified time unit.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidupdate(long amount, TimeUnit unit)default voidupdate(Duration duration)Updates the statistics kept by the recorder with the specified amount.
-
-
-
Method Detail
-
update
void update(long amount, TimeUnit unit)- Parameters:
amount- Duration of a single event being measured by this timer. If the amount is less than 0 the value will be dropped.unit- Time unit for the amount being recorded.
-
update
default void update(Duration duration)
Updates the statistics kept by the recorder with the specified amount.- Parameters:
duration- Duration of a single event being measured by this timer.
-
-