Interface Retriable<T>

Type Parameters:
T - type of optional return value
All Known Subinterfaces:
IRetriable<T>
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 Retriable<T>
Upon failure, the run method will get re-executed by a Retrier until successful or fails according to the Retrier conditions.
Since:
3.0.0 (renamed from IRetriable)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Code to be executed until successful (no exception thrown).
  • Method Details

    • execute

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