Class Throughput

java.lang.Object
org.ojalgo.type.management.Throughput
All Implemented Interfaces:
ThroughputMBean

public final class Throughput extends Object implements ThroughputMBean
  • Field Details

    • NANOS

      private static final double NANOS
      See Also:
    • myLastTime

      private long myLastTime
    • myLastTotal

      private double myLastTotal
    • myTotal

      private final LongAdder myTotal
  • Constructor Details

    • Throughput

      public Throughput()
  • Method Details

    • 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()