Class FallbackConfig<R>
java.lang.Object
dev.failsafe.PolicyConfig<R>
dev.failsafe.FailurePolicyConfig<R>
dev.failsafe.FallbackConfig<R>
- Type Parameters:
R- result type
Configuration for a
Fallback.
This class is threadsafe.
- Author:
- Jonathan Halterman
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the failed attempt event listener.Returns the fallback function, elsenullif a fallback stage function was configured instead.Returns the fallback stage function, elsenullif a fallback function was configured instead.booleanisAsync()Returns whether the Fallback is configured to handle execution results asynchronously, separate from execution.Methods inherited from class FailurePolicyConfig
getFailureConditions, isExceptionsCheckedMethods inherited from class PolicyConfig
getFailureListener, getSuccessListener
-
Method Details
-
getFallback
Returns the fallback function, elsenullif a fallback stage function was configured instead.- See Also:
-
getFallbackStage
Returns the fallback stage function, elsenullif a fallback function was configured instead.- See Also:
-
isAsync
public boolean isAsync()Returns whether the Fallback is configured to handle execution results asynchronously, separate from execution.- See Also:
-
getFailedAttemptListener
Returns the failed attempt event listener.- See Also:
-