V
- Value type that we use to adjust this metric-value.MV
- MetricValue type that holds the metric-value information. We need this because of
makeAdjusted(Object)
which needs to be the same type.public interface MetricValue<V,MV extends MetricValue<V,MV>>
Modifier and Type | Method and Description |
---|---|
Number |
getMax()
Get the maximum value of the metric since the last persist.
|
Number |
getMin()
Get the minimum value of the metric since the last persist.
|
int |
getNumSamples()
Get the number of samples from the metric value.
|
Number |
getValue()
Get the number value from this metric value.
|
boolean |
isResetNext()
Returns true if the next adjustment causes a metric reset.
|
MV |
makeAdjusted(V value)
Make a new entry adjusted by the value parameter.
|
MV |
makeResetNext()
Make an entry that will be reset next time around.
|
MV makeResetNext()
boolean isResetNext()
makeResetNext()
Number getValue()
int getNumSamples()
Number getMin()
Number getMax()
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.