@Vetoed public class CounterImpl extends Object implements org.eclipse.microprofile.metrics.Counter
| Constructor and Description |
|---|
CounterImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
dec()
Decrement the counter by one.
|
void |
dec(long n)
Decrement the counter by
n. |
long |
getCount()
Returns the counter's current value.
|
void |
inc()
Increment the counter by one.
|
void |
inc(long n)
Increment the counter by
n. |
public void inc()
inc in interface org.eclipse.microprofile.metrics.Counterpublic void inc(long n)
n.inc in interface org.eclipse.microprofile.metrics.Countern - the amount by which the counter will be increasedpublic void dec()
dec in interface org.eclipse.microprofile.metrics.Counterpublic void dec(long n)
n.dec in interface org.eclipse.microprofile.metrics.Countern - the amount by which the counter will be decreasedpublic long getCount()
getCount in interface org.eclipse.microprofile.metrics.CountergetCount in interface org.eclipse.microprofile.metrics.CountingCopyright © 2018. All rights reserved.