Interface SynchronousMetricStorage
- All Superinterfaces:
MetricStorage, WriteableMetricStorage
- All Known Implementing Classes:
DefaultSynchronousMetricStorage, EmptyMetricStorage
Stores aggregated
MetricData for synchronous instruments.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields inherited from interface MetricStorage
CARDINALITY_OVERFLOW, DEFAULT_MAX_CARDINALITY -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T extends PointData, U extends ExemplarData>
SynchronousMetricStoragecreate(RegisteredReader registeredReader, RegisteredView registeredView, InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter) Constructs metric storage for a given synchronous instrument and view.static SynchronousMetricStorageempty()Returns metric storage which doesn't store or generate any metrics.Methods inherited from interface MetricStorage
collect, getMetricDescriptor, isEmptyMethods inherited from interface WriteableMetricStorage
isEnabled, recordDouble, recordLong
-
Method Details
-
empty
Returns metric storage which doesn't store or generate any metrics. -
create
static <T extends PointData, U extends ExemplarData> SynchronousMetricStorage create(RegisteredReader registeredReader, RegisteredView registeredView, InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter) Constructs metric storage for a given synchronous instrument and view.- Returns:
- The storage, or
empty()if the instrument should not be recorded.
-