com.twitter.ostrich.stats
A Counter simply keeps track of how many times an event occurred. All operations are atomic and thread-safe.
Get the current value.
Increment the counter by n, atomically.
n
Increment the counter by one.
Clear the counter back to zero.
Set a new value, wiping the old one.
A Counter simply keeps track of how many times an event occurred. All operations are atomic and thread-safe.