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:
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionintIndicate the order in which theRetryAnnotationBeanPostProcessorandConcurrencyLimitBeanPostProcessorshould be applied.booleanIndicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
- 
Element Details- 
proxyTargetClassboolean proxyTargetClassIndicate 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 truewill affect all Spring-managed beans requiring proxying, not just those marked with@Retryableor@ConcurrencyLimit. For example, other beans marked with Spring's@Transactionalannotation will be upgraded to subclass proxying at the same time. This approach has no negative impact in practice unless one is explicitly expecting one type of proxy vs. another — for example, in tests.- Default:
- false
 
- 
orderint orderIndicate the order in which theRetryAnnotationBeanPostProcessorandConcurrencyLimitBeanPostProcessorshould be applied.The default is - 1in order to run after all common post-processors, except for@EnableAsync.- See Also:
 - Default:
- 2147483646
 
 
-