Class DefaultRetryPredicate

  • All Implemented Interfaces:
    RetryPredicate, java.util.function.Predicate<java.lang.Throwable>

    @Introspected
    public class DefaultRetryPredicate
    extends java.lang.Object
    implements RetryPredicate
    Default retry predicate.
    Since:
    2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultRetryPredicate()
      Default constructor.
      DefaultRetryPredicate​(java.util.List<java.lang.Class<? extends java.lang.Throwable>> includes, java.util.List<java.lang.Class<? extends java.lang.Throwable>> excludes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(java.lang.Throwable exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • DefaultRetryPredicate

        public DefaultRetryPredicate​(java.util.List<java.lang.Class<? extends java.lang.Throwable>> includes,
                                     java.util.List<java.lang.Class<? extends java.lang.Throwable>> excludes)
        Parameters:
        includes - Classes to include for retry
        excludes - Classes to exclude for retry
      • DefaultRetryPredicate

        public DefaultRetryPredicate()
        Default constructor.
    • Method Detail

      • test

        public boolean test​(java.lang.Throwable exception)
        Specified by:
        test in interface java.util.function.Predicate<java.lang.Throwable>