Annotation Interface EnableResilientMethods


@Target(TYPE) @Retention(RUNTIME) @Documented @Import(ResilientMethodsConfiguration.class) public @interface EnableResilientMethods
Enables Spring's core resilience features for method invocations: @Retryable as well as @ConcurrencyLimit.

These annotations can also be individually enabled by defining a RetryAnnotationBeanPostProcessor or a ConcurrencyLimitBeanPostProcessor.

Since:
7.0
Author:
Juergen Hoeller
See Also:
  • Element Details

    • proxyTargetClass

      boolean proxyTargetClass
      Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.

      The default is false.

      Note that setting this attribute to true will only affect RetryAnnotationBeanPostProcessor and ConcurrencyLimitBeanPostProcessor.

      It is usually recommendable to rely on a global default proxy configuration instead, with specific proxy requirements for certain beans expressed through a Proxyable annotation on the affected bean classes.

      See Also:
      • AopConfigUtils.forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry)
      Default:
      false
    • order

      int order
      Indicate the order in which the RetryAnnotationBeanPostProcessor and ConcurrencyLimitBeanPostProcessor should be applied.

      The default is - 1 in order to run after all common post-processors, except for @EnableAsync.

      See Also:
      Default:
      2147483646