Class DatarouterCountCollector
java.lang.Object
io.datarouter.metric.counter.collection.DatarouterCountCollector
- All Implemented Interfaces:
io.datarouter.instrumentation.count.CountCollector
public class DatarouterCountCollector
extends Object
implements io.datarouter.instrumentation.count.CountCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionDatarouterCountCollector(long flushIntervalMs, CountBuffers countBuffers, io.datarouter.storage.setting.Setting<Boolean> saveCounts) -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoid
-
Field Details
-
PERIOD_GRANULARITY_MS
public static final long PERIOD_GRANULARITY_MS -
METRICS_INITIAL_CAPACITY
public static final int METRICS_INITIAL_CAPACITY- See Also:
-
-
Constructor Details
-
DatarouterCountCollector
public DatarouterCountCollector(long flushIntervalMs, CountBuffers countBuffers, io.datarouter.storage.setting.Setting<Boolean> saveCounts)
-
-
Method Details
-
increment
- Specified by:
incrementin interfaceio.datarouter.instrumentation.count.CountCollector
-
increment
- Specified by:
incrementin interfaceio.datarouter.instrumentation.count.CountCollector
-
stopAndFlushAll
public void stopAndFlushAll()- Specified by:
stopAndFlushAllin interfaceio.datarouter.instrumentation.count.CountCollector
-