public class NoOpCounter extends java.lang.Object implements Counter
Modifier and Type | Method and Description |
---|---|
void |
dec() |
void |
dec(long n) |
static NoOpCounter |
getInstance() |
MetricName |
getName()
The
MetricName given to this metric. |
void |
inc()
Increment the counter.
|
void |
inc(long n)
Increment the counter by the given amount.
|
public void inc()
Counter
public void inc(long n)
Counter
public MetricName getName()
Metric
MetricName
given to this metric.public static NoOpCounter getInstance()