Annotation Interface EnableRetry
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@EnableAspectJAutoProxy(proxyTargetClass=false)
public @interface EnableRetry
Global enabler for
@Retryable
annotations in Infra 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.- 从以下版本开始:
- 4.0
- 作者:
- Dave Syer, Harry Yang
-
可选元素概要
可选元素修饰符和类型可选元素说明int
Indicate the order in which theRetryConfiguration
AOP advice should be applied.boolean
Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
-
元素详细资料
-
proxyTargetClass
@AliasFor(annotation=infra.context.annotation.EnableAspectJAutoProxy.class) boolean proxyTargetClassIndicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies. The default isfalse
.- 返回:
- whether to proxy or not to proxy the class
- 默认值:
- false
-
order
int orderIndicate the order in which theRetryConfiguration
AOP advice should be applied.The default is
Ordered.LOWEST_PRECEDENCE - 1
in order to make sure the advice is applied before other advices withOrdered.LOWEST_PRECEDENCE
order (e.g. an advice responsible for@Transactional
behavior).- 默认值:
- 2147483646
-