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 voiddecrement()Decrement the counter by one.voiddecrement(long n)Decrement the counter byn.voidincrement()Increment the counter by one.voidincrement(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
-
-