Package dev.failsafe
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) R
Fields inherited from class dev.failsafe.FailurePolicyConfig
exceptionsChecked, failureConditions
Fields inherited from class dev.failsafe.PolicyConfig
failureListener, successListener
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
DelayablePolicyConfig
(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 dev.failsafe.FailurePolicyConfig
getFailureConditions, isExceptionsChecked
Methods inherited from class dev.failsafe.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:
-