public class MBeanCounterImpl extends Object implements org.eclipse.microprofile.metrics.Counter
inc() method will throw an UnsupportedOperationException.
Just use the getCount() method to get the value of the MBean backing this.| Constructor and Description |
|---|
MBeanCounterImpl(MBeanExpression mBean) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
void |
inc()
Throws
UnsupportedOperationException - this is all dealt with
by the backing MBean |
void |
inc(long n)
Throws
UnsupportedOperationException - this is all dealt with
by the backing MBean |
public MBeanCounterImpl(MBeanExpression mBean)
public void inc()
UnsupportedOperationException - this is all dealt with
by the backing MBeaninc in interface org.eclipse.microprofile.metrics.Counterpublic void inc(long n)
UnsupportedOperationException - this is all dealt with
by the backing MBeaninc in interface org.eclipse.microprofile.metrics.Counterpublic long getCount()
getCount in interface org.eclipse.microprofile.metrics.CountergetCount in interface org.eclipse.microprofile.metrics.CountingCopyright © 2019. All rights reserved.