public static interface Timer.BatchUpdater extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Push updates to the associated timer.
|
default void |
record(Duration amount)
Updates the statistics kept by the timer with the specified amount.
|
void |
record(long amount,
TimeUnit unit)
Updates the statistics kept by the timer with the specified amount.
|
closevoid record(long amount,
TimeUnit unit)
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.default void record(Duration amount)
amount - Duration of a single event being measured by this timer.void flush()