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.
- Author:
- Jonathan Halterman
-
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
-
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:
-