Package org.apache.sling.commons.metrics
Interface Counter
-
@ProviderType public interface Counter extends Counting, Metric
An incrementing and decrementing counter metric.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
decrement()
Decrement the counter by one.void
decrement(long n)
Decrement the counter byn
.void
increment()
Increment the counter by one.void
increment(long n)
Increment the counter byn
.
-
-
-
Method Detail
-
increment
void increment()
Increment the counter by one.
-
decrement
void decrement()
Decrement the counter by one.
-
increment
void increment(long n)
Increment the counter byn
.- Parameters:
n
- the amount by which the counter will be increased
-
decrement
void decrement(long n)
Decrement the counter byn
.- Parameters:
n
- the amount by which the counter will be decreased
-
-