Class AbstractRetryInterceptor
java.lang.Object
org.springframework.resilience.retry.AbstractRetryInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
- Direct Known Subclasses:
SimpleRetryInterceptor
public abstract class AbstractRetryInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor
Abstract retry interceptor implementation, adapting a given
retry specification to either
RetryTemplate or Reactor.- Since:
- 7.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable MethodRetrySpecgetRetrySpec(Method method, Class<?> targetClass) Determine the retry specification for the given method on the given target.invoke(org.aopalliance.intercept.MethodInvocation invocation)
-
Constructor Details
-
AbstractRetryInterceptor
public AbstractRetryInterceptor()
-
-
Method Details
-
invoke
-
getRetrySpec
Determine the retry specification for the given method on the given target.- Parameters:
method- the currently executing methodtargetClass- the class of the current target object- Returns:
- the retry specification as a
MethodRetrySpec
-