public class ControlLoadSnapshot extends Object
Constructor and Description |
---|
ControlLoadSnapshot(long latest,
long average,
long time)
Instantiates a new control metric response with given latest, average, time.
|
ControlLoadSnapshot(long latest,
long average,
long time,
long[] recent)
Instantiates a new control metric response with given latest, average, time,
recent values.
|
Modifier and Type | Method and Description |
---|---|
long |
average()
Returns average value of control metric.
|
boolean |
equals(Object obj) |
int |
hashCode() |
long |
latest()
Returns latest value of control metric.
|
long[] |
recent()
Returns a set of historical recent of control metric.
|
long |
time()
Returns last logging time of control metric.
|
String |
toString() |
public ControlLoadSnapshot(long latest, long average, long time)
latest
- latest value of control metricaverage
- average value of control metrictime
- last logging time of control metricpublic ControlLoadSnapshot(long latest, long average, long time, long[] recent)
latest
- latest value of control metricaverage
- average value of control metrictime
- last logging time of control metricrecent
- a set of historical datapublic long latest()
public long time()
public long average()
public long[] recent()