Interface WriteableMetricStorage
-
- All Known Subinterfaces:
SynchronousMetricStorage
- All Known Implementing Classes:
DefaultSynchronousMetricStorage,EmptyMetricStorage,SdkMeter.MultiWritableMetricStorage
public interface WriteableMetricStorageStoresMetricDataand 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEnabled()Returnstrueif 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 Detail
-
recordLong
void recordLong(long value, Attributes attributes, Context context)Records a measurement.
-
recordDouble
void recordDouble(double value, Attributes attributes, Context context)Records a measurement.
-
isEnabled
boolean isEnabled()
Returnstrueif the storage is actively recording measurements, andfalseotherwise (i.e. noop / empty metric storage is installed).
-
-