Interface IRetriable<T>

  • Type Parameters:
    T - type of optional return value
    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 IRetriable<T>
    Upon failure, the run method will get re-executed by a Retrier until successful or fails according to the Retrier conditions.
    Since:
    1.13.0
    Author:
    Pascal Essiembre
    See Also:
    Retrier
    • Method Detail

      • execute

        T execute()
           throws Exception
        Code to be executed until successful (no exception thrown).
        Returns:
        optional return value
        Throws:
        Exception - any exception