Uses of Interface
dev.failsafe.function.CheckedBiPredicate
-
Packages that use CheckedBiPredicate Package Description dev.failsafe APIs for performing failsafe executions. -
-
Uses of CheckedBiPredicate in dev.failsafe
Fields in dev.failsafe with type parameters of type CheckedBiPredicate Modifier and Type Field Description (package private) java.util.List<CheckedBiPredicate<R,java.lang.Throwable>>
RetryPolicyConfig. abortConditions
(package private) java.util.List<CheckedBiPredicate<R,java.lang.Throwable>>
FailurePolicyConfig. failureConditions
Conditions that determine whether an execution is a failureMethods in dev.failsafe that return CheckedBiPredicate Modifier and Type Method Description (package private) static <R> CheckedBiPredicate<R,java.lang.Throwable>
FailurePolicyBuilder. failurePredicateFor(CheckedPredicate<? extends java.lang.Throwable> failurePredicate)
Returns a predicate that evaluates thefailurePredicate
against a failure.(package private) static <R> CheckedBiPredicate<R,java.lang.Throwable>
FailurePolicyBuilder. failurePredicateFor(java.util.List<java.lang.Class<? extends java.lang.Throwable>> failures)
Returns a predicate that returns whether any of thefailures
are assignable from an execution failure.(package private) static <R> CheckedBiPredicate<R,java.lang.Throwable>
FailurePolicyBuilder. resultPredicateFor(CheckedPredicate<R> resultPredicate)
Returns a predicate that evaluates theresultPredicate
against a result, when present.(package private) static <R> CheckedBiPredicate<R,java.lang.Throwable>
FailurePolicyBuilder. resultPredicateFor(R result)
Returns a predicate that evaluates whether theresult
equals an execution result.Methods in dev.failsafe that return types with arguments of type CheckedBiPredicate Modifier and Type Method Description java.util.List<CheckedBiPredicate<R,java.lang.Throwable>>
RetryPolicyConfig. getAbortConditions()
Returns the conditions for which an execution result or exception will cause retries to be aborted.java.util.List<CheckedBiPredicate<R,java.lang.Throwable>>
FailurePolicyConfig. getFailureConditions()
Returns the conditions under which a result or Throwable should be treated as a failure and handled.Methods in dev.failsafe with parameters of type CheckedBiPredicate Modifier and Type Method Description RetryPolicyBuilder<R>
RetryPolicyBuilder. abortIf(CheckedBiPredicate<R,? extends java.lang.Throwable> completionPredicate)
Specifies that retries should be aborted if thecompletionPredicate
matches the completion result.S
FailurePolicyBuilder. handleIf(CheckedBiPredicate<R,? extends java.lang.Throwable> resultPredicate)
Specifies that a failure has occurred if theresultPredicate
matches the execution result.
-