Class DefaultCheckoutMessageRetryPolicyClassifier
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.checkout.DefaultCheckoutMessageRetryPolicyClassifier
-
- All Implemented Interfaces:
Serializable
,org.springframework.classify.Classifier<Throwable,org.springframework.retry.RetryPolicy>
public class DefaultCheckoutMessageRetryPolicyClassifier extends Object implements org.springframework.classify.Classifier<Throwable,org.springframework.retry.RetryPolicy>
Implementation of aClassifier
that is used to identify aRetryPolicy
based on a providedThrowable
. If a RetryPolicy is not identified, then aNeverRetryPolicy
should be returned - ie only retry for specific identified errors.- Author:
- Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultCheckoutMessageRetryPolicyClassifier(org.springframework.retry.RetryPolicy retryPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.retry.RetryPolicy
classify(Throwable throwable)
protected org.springframework.retry.RetryPolicy
getRetryPolicy()
-
-
-
Method Detail
-
classify
public org.springframework.retry.RetryPolicy classify(Throwable throwable)
- Specified by:
classify
in interfaceorg.springframework.classify.Classifier<Throwable,org.springframework.retry.RetryPolicy>
-
getRetryPolicy
protected org.springframework.retry.RetryPolicy getRetryPolicy()
-
-