Class AnnotationAwareRetryOperationsInterceptor
java.lang.Object
org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
,org.springframework.aop.DynamicIntroductionAdvice
,org.springframework.aop.IntroductionInterceptor
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
public class AnnotationAwareRetryOperationsInterceptor
extends Object
implements org.springframework.aop.IntroductionInterceptor, org.springframework.beans.factory.BeanFactoryAware
Interceptor that parses the retry metadata on the method it is invoking and delegates
to an appropriate RetryOperationsInterceptor.
- Since:
- 1.1
- Author:
- Dave Syer, Artem Bilan, Gary Russell, Roman Akentev, Aftab Shaikh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
implementsInterface
(Class<?> intf) invoke
(org.aopalliance.intercept.MethodInvocation invocation) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setKeyGenerator
(MethodArgumentsKeyGenerator methodArgumentsKeyGenerator) void
setListeners
(Collection<RetryListener> globalListeners) Default retry listeners to apply to all operations.void
setNewItemIdentifier
(NewMethodArgumentsIdentifier newMethodArgumentsIdentifier) void
setRetryContextCache
(RetryContextCache retryContextCache) Public setter for theRetryContextCache
.void
setSleeper
(Sleeper sleeper)
-
Constructor Details
-
AnnotationAwareRetryOperationsInterceptor
public AnnotationAwareRetryOperationsInterceptor()
-
-
Method Details
-
setSleeper
- Parameters:
sleeper
- the sleeper to set
-
setRetryContextCache
Public setter for theRetryContextCache
.- Parameters:
retryContextCache
- theRetryContextCache
to set.
-
setKeyGenerator
- Parameters:
methodArgumentsKeyGenerator
- theMethodArgumentsKeyGenerator
-
setNewItemIdentifier
- Parameters:
newMethodArgumentsIdentifier
- theNewMethodArgumentsIdentifier
-
setListeners
Default retry listeners to apply to all operations.- Parameters:
globalListeners
- the default listeners
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
implementsInterface
- Specified by:
implementsInterface
in interfaceorg.springframework.aop.DynamicIntroductionAdvice
-
invoke
- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
-