Interface Timeout.FallbackFunction<T>

Type Parameters:
T - return type of the function
Enclosing class:
Timeout
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 Timeout.FallbackFunction<T>
Function to execute in the event of a timeout.
  • Method Summary

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

    • execute

      T execute()
      Executes the fallback function.
      Returns:
      result of the fallback function