Top Description Methods
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.

Method Summary

Modifier and TypeMethod and Description
public static <T> IntervalBiFunction<T>
Inherited from java.util.function.BiFunction:
andThenapply

Method Detail

ofIntervalFunctionback to summary
public static <T> IntervalBiFunction<T> ofIntervalFunction(IntervalFunction f)