Class Counters
java.lang.Object
io.datarouter.instrumentation.count.Counters
Static class for incrementing counts throughout an application. Register with this class to receive counts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCollector(CountCollector collector) static StringgetSuffix(long periodMs) static voidstatic voidstatic void
-
Field Details
-
MS_IN_SECOND
public static final long MS_IN_SECOND -
MS_IN_MINUTE
public static final long MS_IN_MINUTE -
MS_IN_HOUR
public static final long MS_IN_HOUR -
MS_IN_DAY
public static final long MS_IN_DAY
-
-
Constructor Details
-
Counters
public Counters()
-
-
Method Details
-
getSuffix
-
addCollector
-
stopAndFlushAll
public static void stopAndFlushAll() -
inc
-
inc
-