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) booleanIndicates 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 PolicyConfig
failureListener, successListener -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedFailurePolicyConfig(FailurePolicyConfig<R> config) -
Method Summary
Modifier and TypeMethodDescriptionReturns the conditions under which a result or Throwable should be treated as a failure and handled.booleanReturns whether exceptions are checked by a configured failure condition.Methods inherited from class 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:
-