|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yammer.metrics.core.CounterMetric
public class CounterMetric
An incrementing and decrementing counter metric.
| Constructor Summary | |
|---|---|
CounterMetric()
|
|
| Method Summary | ||
|---|---|---|
void |
clear()
Resets the counter to 0. |
|
long |
count()
Returns the counter's current value. |
|
void |
dec()
Decrement the counter by one. |
|
void |
dec(long n)
Decrement the counter by n |
|
void |
inc()
Increment the counter by one. |
|
void |
inc(long n)
Increment the counter by n. |
|
|
processWith(MetricsProcessor<T> processor,
MetricName name,
T context)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CounterMetric()
| Method Detail |
|---|
public void inc()
public void inc(long n)
n.
n - the amount by which the counter will be increasedpublic void dec()
public void dec(long n)
n
n - the amount by which the counter will be increasedpublic long count()
public void clear()
public <T> void processWith(MetricsProcessor<T> processor,
MetricName name,
T context)
throws Exception
processWith in interface MetricException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||