Class RuntimeStatistic<T extends StatisticSupplier>

java.lang.Object
com.pervasive.datarush.monitoring.RuntimeStatistic<T>
Type Parameters:
T - the type of statistic supplier
All Implemented Interfaces:
Serializable

public final class RuntimeStatistic<T extends StatisticSupplier> extends Object implements Serializable
See Also:
  • Constructor Details

    • RuntimeStatistic

      public RuntimeStatistic(StatisticDefinition<T> definition, T supplier)
      Create a new statistic
      Parameters:
      definition - the definition
      supplier - the supplier
  • Method Details

    • definition

      public StatisticDefinition<T> definition()
      Return the definition of this statistic
      Returns:
      the definition
    • supplier

      public T supplier()
      Returns the supplier of this statistic
      Returns:
      the supplier
    • snapshot

      public RuntimeStatistic<T> snapshot()
      Creates a snapshot of this statistic
      Returns:
      a snapshot
    • finalSnapshot

      public RuntimeStatistic<T> finalSnapshot()
      Creates a final snapshot of this statistic
      Returns:
      a snapshot