Interface IntervalFunction

All Superinterfaces:
java.util.function.Function<java.lang.Integer,​java.lang.Long>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface IntervalFunction
extends java.util.function.Function<java.lang.Integer,​java.lang.Long>
An IntervalFunction which can be used to calculate the wait interval. The input parameter of the function is the number of attempts (attempt), the output parameter the wait interval in milliseconds. The attempt parameter starts at 1 and increases with every further attempt.