mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +00:00
Polishing
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+4
-4
@@ -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;
|
||||
|
||||
+1
-1
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user