Package dev.failsafe
Class FailurePolicyConfig<R>
java.lang.Object
dev.failsafe.PolicyConfig<R>
dev.failsafe.FailurePolicyConfig<R>
- Type Parameters:
R
- result type
- Direct Known Subclasses:
DelayablePolicyConfig
,FallbackConfig
Configuration for policies that handle specific failures and conditions.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
Indicates whether exceptions are checked by a configured failure condition(package private) List
<CheckedBiPredicate<R, Throwable>> Conditions that determine whether an execution is a failureFields inherited from class dev.failsafe.PolicyConfig
failureListener, successListener
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
FailurePolicyConfig
(FailurePolicyConfig<R> config) -
Method Summary
Modifier and TypeMethodDescriptionReturns the conditions under which a result or Throwable should be treated as a failure and handled.boolean
Returns whether exceptions are checked by a configured failure condition.Methods inherited from class dev.failsafe.PolicyConfig
getFailureListener, getSuccessListener
-
Field Details
-
exceptionsChecked
boolean exceptionsCheckedIndicates whether exceptions are checked by a configured failure condition -
failureConditions
List<CheckedBiPredicate<R,Throwable>> failureConditionsConditions that determine whether an execution is a failure
-
-
Constructor Details
-
FailurePolicyConfig
protected FailurePolicyConfig() -
FailurePolicyConfig
-
-
Method Details
-
isExceptionsChecked
public boolean isExceptionsChecked()Returns whether exceptions are checked by a configured failure condition. -
getFailureConditions
Returns the conditions under which a result or Throwable should be treated as a failure and handled.- See Also:
-