Class StatelessRetryOperationsInterceptor
java.lang.Object
org.springframework.amqp.rabbit.config.StatelessRetryOperationsInterceptor
- All Implemented Interfaces:
Advice, Interceptor, MethodInterceptor
MethodInterceptor implementation that retries method invocation with a
RetryOperations.- Since:
- 4.0
- Author:
- Juergen Hoeller, Stephane Nicoll, Artem Bilan, Jun Cho
-
Method Summary
Modifier and TypeMethodDescription@Nullable Objectinvoke(MethodInvocation invocation) voidsetRetryListener(RetryListener retryListener) Set aRetryListenerto be registered on the internalRetryTemplate.
-
Method Details
-
setRetryListener
Set aRetryListenerto be registered on the internalRetryTemplate. If multiple listeners are needed, use aCompositeRetryListener.- Parameters:
retryListener- the retry listener to use- Since:
- 4.2
-
invoke
- Specified by:
invokein interfaceMethodInterceptor- Throws:
Throwable
-