Class DelayablePolicyConfig<R>
java.lang.Object
dev.failsafe.PolicyConfig<R>
dev.failsafe.FailurePolicyConfig<R>
dev.failsafe.DelayablePolicyConfig<R>
- Type Parameters:
R- result type
- Direct Known Subclasses:
CircuitBreakerConfig, RetryPolicyConfig
Configuration for policies that can delay between executions.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Duration(package private) ContextualSupplier<R, Duration> (package private) RFields inherited from class FailurePolicyConfig
exceptionsChecked, failureConditionsFields inherited from class PolicyConfig
failureListener, successListener -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedDelayablePolicyConfig(DelayablePolicyConfig<R> config) -
Method Summary
Modifier and TypeMethodDescriptiongetDelay()Returns the delay until the next execution attempt can be performed.Returns the Throwable that must be matched in order to delay using thegetDelayFn().Returns the function that determines the next delay before another execution can be performed.Returns the result that must be matched in order to delay using thegetDelayFn().Methods inherited from class FailurePolicyConfig
getFailureConditions, isExceptionsCheckedMethods inherited from class PolicyConfig
getFailureListener, getSuccessListener
-
Field Details
-
delay
Duration delay -
delayResult
R delayResult -
delayException
-
delayFn
ContextualSupplier<R,Duration> delayFn
-
-
Constructor Details
-
DelayablePolicyConfig
protected DelayablePolicyConfig() -
DelayablePolicyConfig
-
-
Method Details
-
getDelay
Returns the delay until the next execution attempt can be performed.- See Also:
-
getDelayFn
Returns the function that determines the next delay before another execution can be performed.- See Also:
-
getDelayException
Returns the Throwable that must be matched in order to delay using thegetDelayFn().- See Also:
-
getDelayResult
Returns the result that must be matched in order to delay using thegetDelayFn().- See Also:
-