java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.asynctimeout.clientserver.AsyncClassLevelTimeoutClient

@RequestScoped @Timeout(2000L) @Asynchronous public class AsyncClassLevelTimeoutClient extends Object
A client to demonstrate the combination of the @Retry and @Timeout annotations when applied at the Class level.
Author:
Neil Young
  • Constructor Details

    • AsyncClassLevelTimeoutClient

      public AsyncClassLevelTimeoutClient()
  • Method Details

    • serviceA

      public Future<Connection> serviceA() throws InterruptedException
      serviceA is a slow running service that will take 5 seconds in normal operation. Here it is configured to time out after 2 seconds.
      Returns:
      the result as a Future
      Throws:
      InterruptedException - the interrupted exception