io.github.resilience4j.core
public Interface IntervalBiFunction<T>
extends BiFunction<Integer, Either<Throwable, T>, Long>
- Annotations
- @FunctionalInterface
- Imports
- io.github.resilience4j.core.functions.Either, java.util.function.BiFunction
An IntervalBiFunction which can be used to calculate the wait interval. The input parameters of the bi
function is the number of attempts (attempt) and either result or exception, the output parameter is the wait interval in
milliseconds. The attempt parameter starts at 1 and increases with every further attempt.