Class RuntimeStatistic<T extends StatisticSupplier>

    • Constructor Detail

      • RuntimeStatistic

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

      • 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