Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.springframework.jmx.export.annotation
Annotation Type ManagedMetric

    @Target(value=METHOD)
    @Retention(value=RUNTIME)
    @Documented
    public @interface ManagedMetric

JDK 1.5+ method-level annotation that indicates to expose a given bean property as 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`

Optional Element Summary
`java.lang.String` | `category`
`int` | `currencyTimeLimit`
`java.lang.String` | `description`
`java.lang.String` | `displayName`
`MetricType` | `metricType`
`int` | `persistPeriod`
`java.lang.String` | `persistPolicy`
`java.lang.String` | `unit`

### 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:
    ""

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT