Package org.apache.hadoop.hbase.metrics
Interface Counter
- All Superinterfaces:
Metric
- All Known Implementing Classes:
CounterImpl
A mutable number optimized for high concurrency counting.
-
Method Summary
-
Method Details
-
increment
void increment()Incrementthis
by 1. -
increment
Incrementthis
byn
.- Parameters:
n
- The amount to increment.
-
decrement
void decrement()Decrementthis
by 1. -
decrement
Decrementthis
byn
.- Parameters:
n
- The amount to decrement.
-
getCount
long getCount()Returns the current value.- Returns:
- the current value.
-