Package org.springframework.jmx.export.annotation

# Annotation Interface ManagedAttribute

@Target(METHOD) @Retention(RUNTIME) @Documented public @interface ManagedAttribute
Method-level annotation that indicates to expose a given bean property as a JMX attribute, corresponding to the `ManagedAttribute`.

Only valid when used on a JavaBean getter or setter.

Since:
  1.2
Author:
  Rob Harrop
See Also:
  - `ManagedAttribute`

## Optional Element Summary

Optional Elements
Modifier and Type
Optional Element
Description
`int`
`currencyTimeLimit`
Set the currency time limit field in a `Descriptor`.
`String`
`defaultValue`
Set the default value for the attribute in a `Descriptor`.
`String`
`description`
Set the description for the attribute in a `Descriptor`.
`int`
`persistPeriod`
Set the persistPeriod field in a `Descriptor`.
`String`
`persistPolicy`
Set the persistPolicy field in a `Descriptor`.

## Element Details

### defaultValue

String defaultValue
Set the default value for the attribute in a `Descriptor`.

Default:
  ""

### description

String description
Set the description for the attribute in a `Descriptor`.

Default:
  ""

### currencyTimeLimit

int currencyTimeLimit
Set the currency time limit field in a `Descriptor`.

Default:
  -1

### persistPolicy

String persistPolicy
Set the persistPolicy field in a `Descriptor`.

Default:
  ""

### persistPeriod

int persistPeriod
Set the persistPeriod field in a `Descriptor`.

Default:
  -1