public static interface MetricsFactory.TimeRecorder
| Modifier and Type | Method and Description |
|---|---|
default void |
update(Duration duration)
Updates the statistics kept by the recorder with the specified amount.
|
void |
update(long amount,
TimeUnit unit) |
void update(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 update(Duration duration)
duration - Duration of a single event being measured by this timer.Copyright © 2020 JBoss by Red Hat. All rights reserved.