public class NoOpMeter
extends com.yammer.metrics.core.Meter
Modifier and Type | Field and Description |
---|---|
static NoOpMeter |
INSTANCE
singleton instance for everyone to use
|
Modifier and Type | Method and Description |
---|---|
long |
count() |
double |
fifteenMinuteRate() |
double |
fiveMinuteRate() |
void |
mark() |
void |
mark(long n) |
double |
meanRate() |
double |
oneMinuteRate() |
<T> void |
processWith(com.yammer.metrics.core.MetricProcessor<T> processor,
com.yammer.metrics.core.MetricName name,
T context) |
void |
stop() |
public static final NoOpMeter INSTANCE
public void mark()
mark
in class com.yammer.metrics.core.Meter
public void mark(long n)
mark
in class com.yammer.metrics.core.Meter
public long count()
count
in interface com.yammer.metrics.core.Metered
count
in class com.yammer.metrics.core.Meter
public double fifteenMinuteRate()
fifteenMinuteRate
in interface com.yammer.metrics.core.Metered
fifteenMinuteRate
in class com.yammer.metrics.core.Meter
public double fiveMinuteRate()
fiveMinuteRate
in interface com.yammer.metrics.core.Metered
fiveMinuteRate
in class com.yammer.metrics.core.Meter
public double meanRate()
meanRate
in interface com.yammer.metrics.core.Metered
meanRate
in class com.yammer.metrics.core.Meter
public double oneMinuteRate()
oneMinuteRate
in interface com.yammer.metrics.core.Metered
oneMinuteRate
in class com.yammer.metrics.core.Meter
public void stop()
stop
in interface com.yammer.metrics.core.Stoppable
stop
in class com.yammer.metrics.core.Meter
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.Meter
Exception
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.