java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.util.AsyncCaller

@ApplicationScoped @Asynchronous public class AsyncCaller extends Object
  • Constructor Details

    • AsyncCaller

      public AsyncCaller()
  • Method Details

    • run

      public Future<Void> run(Runnable runnable)
      Run a runnable asynchronously
      Parameters:
      runnable - task to execute
      Returns:
      a completed future set to null
    • submit

      public <T> Future<T> submit(Callable<T> callable)
      Run a callable asynchronously
      Type Parameters:
      T - the type returned by callable
      Parameters:
      callable - the callable to run
      Returns:
      a future which can be used to get the result of running callable