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()Incrementthisby 1. -
increment
Incrementthisbyn.- Parameters:
n- The amount to increment.
-
decrement
void decrement()Decrementthisby 1. -
decrement
Decrementthisbyn.- Parameters:
n- The amount to decrement.
-
getCount
long getCount()Returns the current value.- Returns:
- the current value.
-