org.springframework.jmx.export.annotation

Annotation Type ManagedMetric



  • @Target(value=METHOD)
     @Retention(value=RUNTIME)
     @Documented
    public @interface ManagedMetric
    Method-level annotation that indicates to expose a given bean property as a JMX attribute, with added descriptor properties to indicate that it is a metric. Only valid when used on a JavaBean getter.
    Since:
    3.0
    Author:
    Jennifer Hickey
    See Also:
    ManagedMetric
    • Element Detail

      • category

        public abstract java.lang.String category
        Default:
        ""
      • currencyTimeLimit

        public abstract int currencyTimeLimit
        Default:
        -1
      • description

        public abstract java.lang.String description
        Default:
        ""
      • displayName

        public abstract java.lang.String displayName
        Default:
        ""
      • metricType

        public abstract MetricType metricType
        Default:
        org.springframework.jmx.support.MetricType.GAUGE
      • persistPeriod

        public abstract int persistPeriod
        Default:
        -1
      • persistPolicy

        public abstract java.lang.String persistPolicy
        Default:
        ""
      • unit

        public abstract java.lang.String unit
        Default:
        ""