org.springframework.integration.handler.advice
Class SpelExpressionRetryStateGenerator
java.lang.Object
org.springframework.integration.handler.advice.SpelExpressionRetryStateGenerator
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, RetryStateGenerator
public class SpelExpressionRetryStateGenerator
- extends java.lang.Object
- implements RetryStateGenerator, org.springframework.beans.factory.BeanFactoryAware
Creates a DefaultRetryState from a Message
.
- Since:
- 2.2
- Author:
- Gary Russell
Method Summary |
org.springframework.retry.RetryState |
determineRetryState(Message<?> message)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setClassifier(org.springframework.classify.Classifier<? super java.lang.Throwable,java.lang.Boolean> classifier)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpelExpressionRetryStateGenerator
public SpelExpressionRetryStateGenerator(java.lang.String keyExpression)
SpelExpressionRetryStateGenerator
public SpelExpressionRetryStateGenerator(java.lang.String keyExpression,
java.lang.String forceRefreshExpression)
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
setClassifier
public void setClassifier(org.springframework.classify.Classifier<? super java.lang.Throwable,java.lang.Boolean> classifier)
determineRetryState
public org.springframework.retry.RetryState determineRetryState(Message<?> message)
- Specified by:
determineRetryState
in interface RetryStateGenerator