@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.Counter
public void inc(long n)
n
.inc
in interface org.eclipse.microprofile.metrics.Counter
n
- 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.Counter
getCount
in interface org.eclipse.microprofile.metrics.Counting
Copyright © 2019. All rights reserved.