Polishing

This commit is contained in:
Sam Brannen
2025-07-02 10:58:50 +02:00
parent 5cae769c2d
commit b794abd8cb
6 changed files with 20 additions and 24 deletions
@@ -39,7 +39,7 @@ import org.springframework.util.ConcurrentReferenceHashMap;
/**
* A convenient {@link org.springframework.beans.factory.config.BeanPostProcessor
* BeanPostProcessor} that applies a concurrency interceptor to all bean methods
* annotated with {@link ConcurrencyLimit} annotations.
* annotated with {@link ConcurrencyLimit @ConcurrencyLimit}.
*
* @author Juergen Hoeller
* @since 7.0
@@ -27,10 +27,10 @@ import org.springframework.core.Ordered;
/**
* Enables Spring's core resilience features for method invocations:
* {@link Retryable} as well as {@link ConcurrencyLimit}.
* {@link Retryable @Retryable} as well as {@link ConcurrencyLimit @ConcurrencyLimit}.
*
* <p>These annotations can also be individually enabled through
* defining a {@link RetryAnnotationBeanPostProcessor} and/or a
* <p>These annotations can also be individually enabled by
* defining a {@link RetryAnnotationBeanPostProcessor} or a
* {@link ConcurrencyLimitBeanPostProcessor}.
*
* @author Juergen Hoeller
@@ -61,7 +61,7 @@ public @interface EnableResilientMethods {
* Indicate the order in which the {@link RetryAnnotationBeanPostProcessor}
* and {@link ConcurrencyLimitBeanPostProcessor} should be applied.
* <p>The default is {@link Ordered#LOWEST_PRECEDENCE} in order to run
* after all other post-processors, so that it can add an advisor to
* after all other post-processors, so that they can add advisors to
* existing proxies rather than double-proxy.
*/
int order() default Ordered.LOWEST_PRECEDENCE;
@@ -53,7 +53,7 @@ public class ResilientMethodsConfiguration implements ImportAware {
private void configureProxySupport(ProxyProcessorSupport proxySupport) {
if (this.enableResilientMethods != null) {
proxySupport.setProxyTargetClass(this.enableResilientMethods.getBoolean("proxyTargetClass"));
proxySupport.setOrder(this.enableResilientMethods.<Integer>getNumber("order"));
proxySupport.setOrder(this.enableResilientMethods.getNumber("order"));
}
}
@@ -45,7 +45,7 @@ import org.springframework.util.StringValueResolver;
/**
* A convenient {@link org.springframework.beans.factory.config.BeanPostProcessor
* BeanPostProcessor} that applies a retry interceptor to all bean methods
* annotated with {@link Retryable} annotations.
* annotated with {@link Retryable @Retryable}.
*
* @author Juergen Hoeller
* @since 7.0