public class NoOpTimer
extends com.yammer.metrics.core.Timer
Modifier and Type | Field and Description |
---|---|
static NoOpTimer |
INSTANCE
singleton instance for everyone to use
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
long |
count() |
String |
eventType() |
double |
fifteenMinuteRate() |
double |
fiveMinuteRate() |
com.yammer.metrics.stats.Snapshot |
getSnapshot() |
double |
max() |
double |
mean() |
double |
meanRate() |
double |
min() |
double |
oneMinuteRate() |
<T> void |
processWith(com.yammer.metrics.core.MetricProcessor<T> processor,
com.yammer.metrics.core.MetricName name,
T context) |
double |
stdDev() |
void |
stop() |
double |
sum() |
<T> T |
time(Callable<T> event) |
void |
update(long duration,
TimeUnit unit) |
public static final NoOpTimer INSTANCE
public void clear()
clear
in class com.yammer.metrics.core.Timer
public void update(long duration, TimeUnit unit)
update
in class com.yammer.metrics.core.Timer
public <T> T time(Callable<T> event) throws Exception
time
in class com.yammer.metrics.core.Timer
Exception
public long count()
count
in interface com.yammer.metrics.core.Metered
count
in class com.yammer.metrics.core.Timer
public double fifteenMinuteRate()
fifteenMinuteRate
in interface com.yammer.metrics.core.Metered
fifteenMinuteRate
in class com.yammer.metrics.core.Timer
public double fiveMinuteRate()
fiveMinuteRate
in interface com.yammer.metrics.core.Metered
fiveMinuteRate
in class com.yammer.metrics.core.Timer
public double meanRate()
meanRate
in interface com.yammer.metrics.core.Metered
meanRate
in class com.yammer.metrics.core.Timer
public double oneMinuteRate()
oneMinuteRate
in interface com.yammer.metrics.core.Metered
oneMinuteRate
in class com.yammer.metrics.core.Timer
public double max()
max
in interface com.yammer.metrics.core.Summarizable
max
in class com.yammer.metrics.core.Timer
public double min()
min
in interface com.yammer.metrics.core.Summarizable
min
in class com.yammer.metrics.core.Timer
public double mean()
mean
in interface com.yammer.metrics.core.Summarizable
mean
in class com.yammer.metrics.core.Timer
public double stdDev()
stdDev
in interface com.yammer.metrics.core.Summarizable
stdDev
in class com.yammer.metrics.core.Timer
public double sum()
sum
in interface com.yammer.metrics.core.Summarizable
sum
in class com.yammer.metrics.core.Timer
public com.yammer.metrics.stats.Snapshot getSnapshot()
getSnapshot
in interface com.yammer.metrics.core.Sampling
getSnapshot
in class com.yammer.metrics.core.Timer
public String eventType()
eventType
in interface com.yammer.metrics.core.Metered
eventType
in class com.yammer.metrics.core.Timer
public void stop()
stop
in interface com.yammer.metrics.core.Stoppable
stop
in class com.yammer.metrics.core.Timer
public <T> void processWith(com.yammer.metrics.core.MetricProcessor<T> processor, com.yammer.metrics.core.MetricName name, T context) throws Exception
processWith
in interface com.yammer.metrics.core.Metric
processWith
in class com.yammer.metrics.core.Timer
Exception
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.