Package org.apache.iotdb.metrics.type
Interface Counter
-
- All Superinterfaces:
IMetric
- All Known Implementing Classes:
DoNothingCounter
public interface Counter extends IMetric
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidconstructValueMap(Map<String,Object> result)longgetCount()Get the value of counter.voidinc()Counter add 1.voidinc(long n)Counter add n.-
Methods inherited from interface org.apache.iotdb.metrics.type.IMetric
setObjectName
-
-
-
-
Method Detail
-
inc
void inc()
Counter add 1.
-
inc
void inc(long n)
Counter add n.
-
getCount
long getCount()
Get the value of counter.
-
constructValueMap
default void constructValueMap(Map<String,Object> result)
- Specified by:
constructValueMapin interfaceIMetric
-
-