Class MemberToMetricMappings


  • public class MemberToMetricMappings
    extends Object
    During CDI registration in MetricsMetadata this is used to store metrics (MetricID) related to the Member in which the member/element was annotated with one of the metric annotations. The interceptors will later use this member mappings to find the MetricIDs associated to it, query the Metric Registry's registry and retrieve the metric
    • Constructor Detail

      • MemberToMetricMappings

        public MemberToMetricMappings()
    • Method Detail

      • getCounters

        public Set<org.eclipse.microprofile.metrics.MetricID> getCounters​(MemberInfo member)
      • getTimers

        public Set<org.eclipse.microprofile.metrics.MetricID> getTimers​(MemberInfo member)
      • addTimer

        public void addTimer​(MemberInfo member,
                             org.eclipse.microprofile.metrics.MetricID metricID)
      • addCounter

        public void addCounter​(MemberInfo member,
                               org.eclipse.microprofile.metrics.MetricID metricID)