Interface AsyncCallable<T>

Type Parameters:
T - The return type.
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 AsyncCallable<T>
Interface to allow wrapping of an async call.
  • Method Summary

    Modifier and Type
    Method
    Description
    The call to invoke asynchronously.
  • Method Details

    • invoke

      T invoke() throws Exception
      The call to invoke asynchronously.
      Returns:
      T the return type.
      Throws:
      Exception - a generic indication for the actual Exception.