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