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 makePersisted()
and makeAdjusted(Object)
must be of 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.
|
MV |
makeAdjusted(V value)
Make a new entry adjusted by the value parameter.
|
MV |
makePersisted()
Make an entry that is suitable for persisting.
|
MV makePersisted()
Number getValue()
makePersisted()
if you want to save the value to disk.int getNumSamples()
Number getMin()
Number getMax()
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.