Package com.lightbend.cinnamon.metric
Interface Counter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
decrement()
Decrement theCounter
by one.void
decrement(long n)
Decrement theCounter
byn
.void
increment()
Increment theCounter
by one.void
increment(long n)
Increment theCounter
byn
.
-
-
-
Field Detail
-
NONE
static final Counter NONE
Empty no-opCounter
.
-
-
Method Detail
-
decrement
void decrement()
Decrement theCounter
by one.
-
decrement
void decrement(long n)
Decrement theCounter
byn
.- Parameters:
n
- amount to decrement
-
increment
void increment()
Increment theCounter
by one.
-
increment
void increment(long n)
Increment theCounter
byn
.- Parameters:
n
- amount to increment
-
-