Package org.ojalgo.type.management
Class Throughput
- java.lang.Object
-
- org.ojalgo.type.management.Throughput
-
- All Implemented Interfaces:
ThroughputMBean
public final class Throughput extends java.lang.Object implements ThroughputMBean
-
-
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()
-
-
-
Field Detail
-
NANOS
private static final double NANOS
- See Also:
- Constant Field Values
-
myLastTime
private long myLastTime
-
myLastTotal
private double myLastTotal
-
myTotal
private final java.util.concurrent.atomic.LongAdder myTotal
-
-
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 interfaceThroughputMBean
-
getTotal
public long getTotal()
Description copied from interface:ThroughputMBean
The total number of items that passed through here.- Specified by:
getTotal
in interfaceThroughputMBean
-
increment
public void increment()
-
-