@ThreadSafe public interface Measure
Measurement that is taken by OpenConsensus library.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Measure.Builder
Builder class for the
Measure. |
static class |
Measure.Type
An enum that represents all the possible value types for a
Measure or a Measurement. |
| Modifier and Type | Method and Description |
|---|---|
Measurement |
createDoubleMeasurement(double value)
Returns a new
Measurement for this Measure. |
Measurement |
createLongMeasurement(long value)
Returns a new
Measurement for this Measure. |
Measurement createDoubleMeasurement(double value)
Measurement for this Measure.value - the corresponding double value for the Measurement.Measurement for this Measure.UnsupportedOperationException - if the type is not Measure.Type.DOUBLE.Measurement createLongMeasurement(long value)
Measurement for this Measure.value - the corresponding long value for the Measurement.Measurement for this Measure.UnsupportedOperationException - if the type is not Measure.Type.LONG.