R
- result typepublic abstract class DelayablePolicyConfig<R> extends FailurePolicyConfig<R>
Modifier | Constructor and Description |
---|---|
protected |
DelayablePolicyConfig() |
protected |
DelayablePolicyConfig(DelayablePolicyConfig<R> config) |
Modifier and Type | Method and Description |
---|---|
Duration |
getDelay()
Returns the delay until the next execution attempt can be performed.
|
Class<? extends Throwable> |
getDelayException()
Returns the Throwable that must be matched in order to delay using the
getDelayFn() . |
ContextualSupplier<R,Duration> |
getDelayFn()
Returns the function that determines the next delay before another execution can be performed.
|
R |
getDelayResult()
Returns the result that must be matched in order to delay using the
getDelayFn() . |
getFailureConditions, isExceptionsChecked
getFailureListener, getSuccessListener
protected DelayablePolicyConfig()
protected DelayablePolicyConfig(DelayablePolicyConfig<R> config)
public Duration getDelay()
public ContextualSupplier<R,Duration> getDelayFn()
public Class<? extends Throwable> getDelayException()
getDelayFn()
.public R getDelayResult()
getDelayFn()
.Copyright © 2022. All rights reserved.