Interface CounterSupplier

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 their CounterDefinition.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    This will return the value of the counter or an undefined value if never started.
    Returns a snapshot of this statistic.

    Methods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier

    getState
  • Method Details

    • snapshot

      CounterSupplier snapshot()
      Description copied from interface: StatisticSupplier
      Returns a snapshot of this statistic.
      Specified by:
      snapshot in interface StatisticSupplier
      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.