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 TypeMethodDescriptionboolean
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 Details
-
recordLong
Records a measurement. -
recordDouble
Records a measurement. -
isEnabled
boolean isEnabled()Returnstrue
if the storage is actively recording measurements, andfalse
otherwise (i.e. noop / empty metric storage is installed).
-