public static class NoopMetricsRegistry.NoopTimer extends Object implements Timer
| Modifier and Type | Class and Description |
|---|---|
static class |
NoopMetricsRegistry.NoopTimer.NoopSample |
Timer.Builder, Timer.Sample| Constructor and Description |
|---|
NoopTimer() |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
record(long duration,
TimeUnit unit)
Updates the statistics kept by the counter with the specified amount.
|
Timer.Sample |
start()
Returns a new
Timer.Sample. |
double |
totalTime(TimeUnit unit) |
public void record(long duration,
TimeUnit unit)
Timerpublic double totalTime(TimeUnit unit)
public long count()
public Timer.Sample start()
TimerTimer.Sample.start in interface TimerTimer.SampleTimer.SampleCopyright © 2019. All rights reserved.