Package org.ojalgo.type.management
Class Throughput
java.lang.Object
org.ojalgo.type.management.Throughput
- All Implemented Interfaces:
ThroughputMBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private double
private final LongAdder
private static final double
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NANOS
private static final double NANOS- See Also:
-
myLastTime
private long myLastTime -
myLastTotal
private double myLastTotal -
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 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()
-