Package io.micronaut.retry.annotation
Class DefaultRetryPredicate
- java.lang.Object
-
- io.micronaut.retry.annotation.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)
-
-
-
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 retryexcludes
- Classes to exclude for retry
-
DefaultRetryPredicate
public DefaultRetryPredicate()
Default constructor.
-
-