What does the following fields mean in Spring @ManagedResource
used for JMX? There is no Javadoc or related description in Spring documentation.
1. String persistPolicy() default ""; 2. int persistPeriod() default -1; 3. String persistLocation() default ""; 4. int currencyTimeLimit() default -1;
These are passed onto the JMX api - you can find more info about it in the JMX java doc. Copying the relevant section here -
persistPolicy : OnUpdate|OnTimer|NoMoreOftenThan|OnUnregister|Always|Never persistLocation : The fully qualified directory name where the MBean should be persisted (if appropriate) persistFile : File name into which the MBean should be persisted persistPeriod : seconds - frequency of persist cycle for OnTime and NoMoreOftenThan PersistPolicy currencyTimeLimit : how long value is valid, <0 never, =0 always, >0 seconds
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With