@Vetoed public class CounterImpl extends Object implements org.eclipse.microprofile.metrics.Counter
| Constructor and Description |
|---|
CounterImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
dec()
Deprecated.
since Payara 5.193; removed in MP Metrics 2.0
|
void |
dec(long n)
Deprecated.
since Payara 5.193; removed in MP Metrics 2.0
|
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 increased@Deprecated public void dec()
@Deprecated public void dec(long n)
n.n - 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 © 2019. All rights reserved.