Package | Description |
---|---|
dev.failsafe |
APIs for performing failsafe executions.
|
Modifier and Type | Method and Description |
---|---|
List<CheckedBiPredicate<R,Throwable>> |
RetryPolicyConfig.getAbortConditions()
Returns the conditions for which an execution result or exception will cause retries to be aborted.
|
List<CheckedBiPredicate<R,Throwable>> |
FailurePolicyConfig.getFailureConditions()
Returns the conditions under which a result or Throwable should be treated as a failure and handled.
|
Modifier and Type | Method and Description |
---|---|
RetryPolicyBuilder<R> |
RetryPolicyBuilder.abortIf(CheckedBiPredicate<R,? extends Throwable> completionPredicate)
Specifies that retries should be aborted if the
completionPredicate matches the completion result. |
S |
FailurePolicyBuilder.handleIf(CheckedBiPredicate<R,? extends Throwable> resultPredicate)
Specifies that a failure has occurred if the
resultPredicate matches the execution result. |
Copyright © 2022. All rights reserved.