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 a
Classifier
that is used to identify a RetryPolicy
based on a
provided Throwable
. If a RetryPolicy is not identified, then a NeverRetryPolicy
should be returned - ie only retry for specific identified errors.- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultCheckoutMessageRetryPolicyClassifier
(org.springframework.retry.RetryPolicy retryPolicy) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.retry.RetryPolicy
protected org.springframework.retry.RetryPolicy
-
Constructor Details
-
DefaultCheckoutMessageRetryPolicyClassifier
public DefaultCheckoutMessageRetryPolicyClassifier(org.springframework.retry.RetryPolicy retryPolicy)
-
-
Method Details
-
classify
- Specified by:
classify
in interfaceorg.springframework.classify.Classifier<Throwable,
org.springframework.retry.RetryPolicy>
-
getRetryPolicy
protected org.springframework.retry.RetryPolicy getRetryPolicy()
-