Package | Description |
---|---|
dev.failsafe |
APIs for performing failsafe executions.
|
Modifier and Type | Method and Description |
---|---|
RetryPolicyBuilder<R> |
RetryPolicyBuilder.abortIf(CheckedPredicate<R> resultPredicate)
Specifies that retries should be aborted if the
resultPredicate matches the result. |
RetryPolicyBuilder<R> |
RetryPolicyBuilder.abortOn(CheckedPredicate<? extends Throwable> abortPredicate)
Specifies that retries should be aborted if the
abortPredicate matches the exception. |
S |
FailurePolicyBuilder.handleIf(CheckedPredicate<? extends Throwable> failurePredicate)
Specifies that a failure has occurred if the
failurePredicate matches the exception. |
S |
FailurePolicyBuilder.handleResultIf(CheckedPredicate<R> resultPredicate)
Specifies that a failure has occurred if the
resultPredicate matches the execution result. |
Copyright © 2022. All rights reserved.