-
- All Superinterfaces:
StatisticSupplier
- All Known Implementing Classes:
BasicCounter,CounterSnapshot
public interface CounterSupplier extends StatisticSupplier
Abstract statistic that represents a count of some runtime activity. Counters consist of a state(unavailable, started, stopped) and a count. Counters can aggregate in a configurable way, specified by theirCounterDefinition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCount()This will return the value of the counter or an undefined value if never started.CounterSuppliersnapshot()Returns a snapshot of this statistic.-
Methods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier
getState
-
-
-
-
Method Detail
-
snapshot
CounterSupplier snapshot()
Description copied from interface:StatisticSupplierReturns a snapshot of this statistic.- Specified by:
snapshotin interfaceStatisticSupplier- Returns:
- a snapshot of this statistic.
-
getCount
long getCount()
This will return the value of the counter or an undefined value if never started.- Returns:
- the value of the counter or an undefined value if never started.
-
-