public interface Counter extends Metric
Metric for counting. The value of the Counter can be incremented or decremented.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets the counter to 0.
|
void |
dec()
Decrement the counter by one.
|
void |
dec(long n)
Decrement the counter by
n. |
long |
getCount()
Get the current value of the counter
|
void |
inc()
Increment the counter by one.
|
void |
inc(long n)
Increment the counter by
n. |
void inc()
void inc(long n)
n.n - the amount by which the counter will be increasedvoid dec()
void dec(long n)
n.n - the amount by which the counter will be increasedvoid clear()
long getCount()
Copyright © 2014 Cloud Software Group, Inc.. All Rights Reserved.