- 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 longmyLastTimeprivate doublemyLastTotalprivate java.util.concurrent.atomic.LongAddermyTotalprivate static doubleNANOS
-
Constructor Summary
Constructors Constructor Description Throughput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long x)doublegetRate()The, current, throughput rate (items/second)longgetTotal()The total number of items that passed through here.voidincrement()
-
-
-
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:ThroughputMBeanThe, current, throughput rate (items/second)- Specified by:
getRatein interfaceThroughputMBean
-
getTotal
public long getTotal()
Description copied from interface:ThroughputMBeanThe total number of items that passed through here.- Specified by:
getTotalin interfaceThroughputMBean
-
increment
public void increment()
-
-