Package org.eclipse.microprofile.metrics
Interface Counter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dec()
Decrement the counter by one.void
dec(long n)
Decrement the counter byn
.long
getCount()
Returns the counter's current value.void
inc()
Increment the counter by one.void
inc(long n)
Increment the counter byn
.
-
-
-
Method Detail
-
inc
void inc()
Increment the counter by one.
-
inc
void inc(long n)
Increment the counter byn
.- Parameters:
n
- the amount by which the counter will be increased
-
dec
void dec()
Decrement the counter by one.
-
dec
void dec(long n)
Decrement the counter byn
.- Parameters:
n
- the amount by which the counter will be decreased
-
-