Class Throughput

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long myLastTime  
      private double myLastTotal  
      private java.util.concurrent.atomic.LongAdder myTotal  
      private static double NANOS  
    • Constructor Summary

      Constructors 
      Constructor Description
      Throughput()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(long x)  
      double getRate()
      The, current, throughput rate (items/second)
      long getTotal()
      The total number of items that passed through here.
      void increment()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • myLastTime

        private long myLastTime
      • myLastTotal

        private double myLastTotal
      • myTotal

        private final java.util.concurrent.atomic.LongAdder myTotal
    • Constructor Detail

      • Throughput

        public Throughput()
    • Method Detail

      • add

        public void add​(long x)
      • getRate

        public double getRate()
        Description copied from interface: ThroughputMBean
        The, current, throughput rate (items/second)
        Specified by:
        getRate in interface ThroughputMBean
      • getTotal

        public long getTotal()
        Description copied from interface: ThroughputMBean
        The total number of items that passed through here.
        Specified by:
        getTotal in interface ThroughputMBean
      • increment

        public void increment()