Class SpelExpressionRetryStateGenerator
java.lang.Object
org.springframework.integration.handler.advice.SpelExpressionRetryStateGenerator
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,RetryStateGenerator
public class SpelExpressionRetryStateGenerator extends Object implements RetryStateGenerator, BeanFactoryAware
Creates a DefaultRetryState from a
Message
.- Since:
- 2.2
- Author:
- Gary Russell
-
Constructor Summary
Constructors Constructor Description SpelExpressionRetryStateGenerator(String keyExpression)
SpelExpressionRetryStateGenerator(String keyExpression, String forceRefreshExpression)
-
Method Summary
Modifier and Type Method Description org.springframework.retry.RetryState
determineRetryState(Message<?> message)
void
setBeanFactory(BeanFactory beanFactory)
void
setClassifier(org.springframework.classify.Classifier<? super Throwable,Boolean> classifier)
-
Constructor Details
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
setClassifier
-
determineRetryState
- Specified by:
determineRetryState
in interfaceRetryStateGenerator
-