Package dev.failsafe.spi
Interface DelayablePolicy<R>
- Type Parameters:
R- result type
- All Superinterfaces:
Policy<R>
- All Known Implementing Classes:
CircuitBreakerImpl,RetryPolicyImpl
A policy that can be delayed between executions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault DurationcomputeDelay(ExecutionContext<R> context) Returns a computed delay for theresultandcontextelsenullif no delay function is configured or the computed delay is invalid.Returns the policy config.Methods inherited from interface dev.failsafe.Policy
toExecutor
-
Method Details
-
getConfig
DelayablePolicyConfig<R> getConfig()Description copied from interface:PolicyReturns the policy config. -
computeDelay
Returns a computed delay for theresultandcontextelsenullif no delay function is configured or the computed delay is invalid.
-