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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanimplementsInterface(Class<?> intf) invoke(org.aopalliance.intercept.MethodInvocation invocation) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetKeyGenerator(MethodArgumentsKeyGenerator methodArgumentsKeyGenerator) voidsetListeners(Collection<RetryListener> globalListeners) Default retry listeners to apply to all operations.voidsetNewItemIdentifier(NewMethodArgumentsIdentifier newMethodArgumentsIdentifier) voidsetRetryContextCache(RetryContextCache retryContextCache) Public setter for theRetryContextCache.voidsetSleeper(Sleeper sleeper)
-
Constructor Details
-
AnnotationAwareRetryOperationsInterceptor
public AnnotationAwareRetryOperationsInterceptor()
-
-
Method Details
-
setSleeper
- Parameters:
sleeper- the sleeper to set
-
setRetryContextCache
Public setter for theRetryContextCache.- Parameters:
retryContextCache- theRetryContextCacheto 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:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
implementsInterface
- Specified by:
implementsInterfacein interfaceorg.springframework.aop.DynamicIntroductionAdvice
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-