Class GetCountOnlyCounter
- java.lang.Object
-
- io.quarkus.smallrye.metrics.runtime.GetCountOnlyCounter
-
- All Implemented Interfaces:
org.eclipse.microprofile.metrics.Counter,org.eclipse.microprofile.metrics.Counting,org.eclipse.microprofile.metrics.Metric
public abstract class GetCountOnlyCounter extends Object implements org.eclipse.microprofile.metrics.Counter
A helper abstract class for implementing counters which only need a getCount method. Other methods throw an exception.
-
-
Constructor Summary
Constructors Constructor Description GetCountOnlyCounter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract longgetCount()voidinc()voidinc(long n)
-
-
-
Method Detail
-
inc
public void inc()
- Specified by:
incin interfaceorg.eclipse.microprofile.metrics.Counter
-
inc
public void inc(long n)
- Specified by:
incin interfaceorg.eclipse.microprofile.metrics.Counter
-
getCount
public abstract long getCount()
- Specified by:
getCountin interfaceorg.eclipse.microprofile.metrics.Counter- Specified by:
getCountin interfaceorg.eclipse.microprofile.metrics.Counting
-
-