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 aClassifierthat is used to identify aRetryPolicybased on a providedThrowable. If a RetryPolicy is not identified, then aNeverRetryPolicyshould 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.RetryPolicyclassify(Throwable throwable)protected org.springframework.retry.RetryPolicygetRetryPolicy()
-
-
-
Method Detail
-
classify
public org.springframework.retry.RetryPolicy classify(Throwable throwable)
- Specified by:
classifyin interfaceorg.springframework.classify.Classifier<Throwable,org.springframework.retry.RetryPolicy>
-
getRetryPolicy
protected org.springframework.retry.RetryPolicy getRetryPolicy()
-
-