Interface OciCircuitBreaker.Config.IntervalFunction

  • All Superinterfaces:
    Function<Integer,​Long>
    Enclosing interface:
    OciCircuitBreaker.Config
    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 static interface OciCircuitBreaker.Config.IntervalFunction
    extends Function<Integer,​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.