java.lang.Object
io.helidon.metrics.api.AbstractMetric
- All Implemented Interfaces:
- HelidonMetric,- Metric
Common reusable implementation for any category of metric implementation (full-featured, no-op).
 
 Helidon relies on this additional behavior beyond that provided by MP Metric.
 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractMetric(String registryType, Metadata metadata) Common initialization logic in creating a new metric.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanvoidRecord that a previously-registered metric has been removed from the registry.metadata()
- 
Constructor Details- 
AbstractMetricCommon initialization logic in creating a new metric.- Parameters:
- registryType- type of metric registry the metric is registered in
- metadata- metric metadata describing the metric
 
 
- 
- 
Method Details- 
metadata- Specified by:
- metadatain interface- HelidonMetric
- Returns:
- the metadata for the metric
 
- 
markAsDeletedpublic void markAsDeleted()Description copied from interface:HelidonMetricRecord that a previously-registered metric has been removed from the registry.- Specified by:
- markAsDeletedin interface- HelidonMetric
 
- 
isDeletedpublic boolean isDeleted()- Specified by:
- isDeletedin interface- HelidonMetric
- Returns:
- true if the metric has been removed from its registry; false if it is still registered
 
- 
registryType- Specified by:
- registryTypein interface- HelidonMetric
- Returns:
- the name of the registry type in which the metric was registered
 
 
-