- java.lang.Object
-
- io.helidon.metrics.api.AbstractMetric
-
- All Implemented Interfaces:
HelidonMetric
,Metric
public abstract class AbstractMetric extends Object implements HelidonMetric
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 Summary
Constructors Modifier Constructor Description protected
AbstractMetric(String registryType, Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDeleted()
void
markAsDeleted()
Record that a previously-registered metric has been removed from the registry.Metadata
metadata()
String
registryType()
-
-
-
Method Detail
-
metadata
public Metadata metadata()
- Specified by:
metadata
in interfaceHelidonMetric
- Returns:
- the metadata for the metric
-
markAsDeleted
public void markAsDeleted()
Description copied from interface:HelidonMetric
Record that a previously-registered metric has been removed from the registry.- Specified by:
markAsDeleted
in interfaceHelidonMetric
-
isDeleted
public boolean isDeleted()
- Specified by:
isDeleted
in interfaceHelidonMetric
- Returns:
- true if the metric has been removed from its registry; false if it is still registered
-
registryType
public String registryType()
- Specified by:
registryType
in interfaceHelidonMetric
- Returns:
- the name of the registry type in which the metric was registered
-
-