Class CountStatisticImpl

  • All Implemented Interfaces:
    javax.management.j2ee.statistics.CountStatistic, javax.management.j2ee.statistics.Statistic, Resettable

    public class CountStatisticImpl
    extends StatisticImpl
    implements javax.management.j2ee.statistics.CountStatistic
    A count statistic implementation
    • Method Detail

      • getCount

        public long getCount()
        Specified by:
        getCount in interface javax.management.j2ee.statistics.CountStatistic
      • setCount

        public void setCount​(long count)
      • add

        public void add​(long amount)
      • increment

        public void increment()
      • subtract

        public void subtract​(long amount)
      • decrement

        public void decrement()
      • getPeriod

        public double getPeriod()
        Returns:
        the average time period that elapses between counter increments since the last reset.
      • getFrequency

        public double getFrequency()
        Returns:
        the number of times per second that the counter is incrementing since the last reset.