| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
<T> RetryPolicy |
RetryPolicy.abortIf(Predicate<T> resultPredicate)
Specifies that retries should be aborted if the
resultPredicate matches the result. |
RetryPolicy |
RetryPolicy.abortOn(Predicate<? extends Throwable> failurePredicate)
Specifies that retries should be aborted if the
failurePredicate matches the failure. |
<T> CircuitBreaker |
CircuitBreaker.failIf(Predicate<T> resultPredicate)
Specifies that a failure should be recorded if the
resultPredicate matches the result. |
CircuitBreaker |
CircuitBreaker.failOn(Predicate<? extends Throwable> failurePredicate)
Specifies that a failure should be recorded if the
failurePredicate matches the failure. |
<T> RetryPolicy |
RetryPolicy.retryIf(Predicate<T> resultPredicate)
Specifies that a retry should occur if the
resultPredicate matches the result and the retry policy is not
exceeded. |
RetryPolicy |
RetryPolicy.retryOn(Predicate<? extends Throwable> failurePredicate)
Specifies that a retry should occur if the
failurePredicate matches the failure and the retry policy is not
exceeded. |
Copyright © 2017. All Rights Reserved.