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 Details

    • DefaultCheckoutMessageRetryPolicyClassifier

      public DefaultCheckoutMessageRetryPolicyClassifier(org.springframework.retry.RetryPolicy retryPolicy)
  • Method Details

    • classify

      public org.springframework.retry.RetryPolicy classify(Throwable throwable)
      Specified by:
      classify in interface org.springframework.classify.Classifier<Throwable,org.springframework.retry.RetryPolicy>
    • getRetryPolicy

      protected org.springframework.retry.RetryPolicy getRetryPolicy()