public class NoOpCounter
extends com.yammer.metrics.core.Counter
Modifier and Type | Field and Description |
---|---|
static NoOpCounter |
INSTANCE
singleton instance for everyone to use
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
long |
count() |
void |
dec() |
void |
dec(long n) |
void |
inc() |
void |
inc(long n) |
<T> void |
processWith(com.yammer.metrics.core.MetricProcessor<T> processor,
com.yammer.metrics.core.MetricName name,
T context) |
public static final NoOpCounter INSTANCE
public void inc()
inc
in class com.yammer.metrics.core.Counter
public void inc(long n)
inc
in class com.yammer.metrics.core.Counter
public void dec()
dec
in class com.yammer.metrics.core.Counter
public void dec(long n)
dec
in class com.yammer.metrics.core.Counter
public long count()
count
in class com.yammer.metrics.core.Counter
public void clear()
clear
in class com.yammer.metrics.core.Counter
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.Counter
Exception
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.