Interface Retry.RetryableFunction<T>

  • Type Parameters:
    T - return type of the wrapped function
    Enclosing class:
    Retry
    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 Retry.RetryableFunction<T>
    Function that adds retries with exponential backoff.
    • Method Detail

      • execute

        T execute()
           throws java.lang.Exception
        Executes the wrapped function.
        Returns:
        result of the wrapped function
        Throws:
        java.lang.Exception - exception