Interface WriteableMetricStorage
- All Known Subinterfaces:
SynchronousMetricStorage
- All Known Implementing Classes:
DefaultSynchronousMetricStorage,EmptyMetricStorage,SdkMeter.MultiWritableMetricStorage
public interface WriteableMetricStorage
Stores
MetricData and allows synchronous writes of measurements.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the storage is actively recording measurements, andfalseotherwise (i.e.voidrecordDouble(double value, Attributes attributes, Context context) Records a measurement.voidrecordLong(long value, Attributes attributes, Context context) Records a measurement.
-
Method Details
-
recordLong
Records a measurement. -
recordDouble
Records a measurement. -
isEnabled
boolean isEnabled()Returnstrueif the storage is actively recording measurements, andfalseotherwise (i.e. noop / empty metric storage is installed).
-