Annotation Interface EnableRetry


@Target(TYPE) @Retention(RUNTIME) @EnableAspectJAutoProxy(proxyTargetClass=false) @Import(RetryConfiguration.class) @Documented public @interface EnableRetry
Global enabler for @Retryable annotations in Spring beans. If this is declared on any @Configuration in the context then beans that have retryable methods will be proxied and the retry handled according to the metadata in the annotations.
Since:
1.1
Author:
Dave Syer, Yanming Zhou, Ruslan Stelmachenko
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Indicate the order in which the RetryConfiguration AOP advice should be applied.
    boolean
    Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
  • Element Details

    • proxyTargetClass

      @AliasFor(annotation=org.springframework.context.annotation.EnableAspectJAutoProxy.class) boolean proxyTargetClass
      Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies. The default is false.
      Returns:
      whether to proxy or not to proxy the class
      Default:
      false
    • order

      int order
      Indicate the order in which the RetryConfiguration AOP advice should be applied.

      The default is Ordered.LOWEST_PRECEDENCE - 1 in order to make sure the advice is applied before other advices with Ordered.LOWEST_PRECEDENCE order (e.g. an advice responsible for @Transactional behavior).

      Default:
      2147483646