public class NoopLongTaskTimer extends NoopMeter implements LongTaskTimer
LongTaskTimer.Builder, LongTaskTimer.Sample
Meter.Id, Meter.Type
Constructor and Description |
---|
NoopLongTaskTimer(Meter.Id id) |
Modifier and Type | Method and Description |
---|---|
int |
activeTasks() |
java.util.concurrent.TimeUnit |
baseTimeUnit() |
double |
duration(java.util.concurrent.TimeUnit unit) |
double |
max(java.util.concurrent.TimeUnit unit)
The amount of time the longest running task has been running
|
LongTaskTimer.Sample |
start()
Start keeping time for a task.
|
HistogramSnapshot |
takeSnapshot()
Summary statistics should be published off of a single snapshot instance so that, for example, there isn't
disagreement between the distribution's bucket counts because more events continue to stream in.
|
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, builder, duration, mean, measure, record, record, record, recordCallable, stop
takeSnapshot
public NoopLongTaskTimer(Meter.Id id)
public LongTaskTimer.Sample start()
LongTaskTimer
start
in interface LongTaskTimer
public double duration(java.util.concurrent.TimeUnit unit)
duration
in interface LongTaskTimer
unit
- The time unit to scale the duration to.public int activeTasks()
activeTasks
in interface LongTaskTimer
public double max(java.util.concurrent.TimeUnit unit)
LongTaskTimer
max
in interface LongTaskTimer
unit
- The time unit to scale the max to.public HistogramSnapshot takeSnapshot()
HistogramSupport
takeSnapshot
in interface HistogramSupport
public java.util.concurrent.TimeUnit baseTimeUnit()
baseTimeUnit
in interface LongTaskTimer