Class MetadataHolder


  • public class MetadataHolder
    extends Object
    DefaultMetadata from MP Metrics API does not have a public default constructor, so we use this custom wrapper for passing metric metadata from processor to recorder and reconstructing the original Metadata instance in runtime code.
    • Constructor Detail

      • MetadataHolder

        public MetadataHolder()
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getMetricType

        public org.eclipse.microprofile.metrics.MetricType getMetricType()
      • setMetricType

        public void setMetricType​(org.eclipse.microprofile.metrics.MetricType metricType)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getDisplayName

        public String getDisplayName()
      • setDisplayName

        public void setDisplayName​(String displayName)
      • getUnit

        public String getUnit()
      • setUnit

        public void setUnit​(String unit)
      • from

        public static MetadataHolder from​(org.eclipse.microprofile.metrics.Metadata metadata)
      • toMetadata

        public org.eclipse.microprofile.metrics.Metadata toMetadata()