Interface RetryableFunction<T>

Type Parameters:
T - return type of the wrapped function
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 RetryableFunction<T>
Function that should be retried in the event of an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the wrapped function.
  • Method Details

    • execute

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