Class AsyncTimeoutClient
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.asynctimeout.clientserver.AsyncTimeoutClient
A client to demonstrate the combination of the @Retry and @Timeout annotations.
- Author:
- Neil Young
-
Constructor Details
-
AsyncTimeoutClient
public AsyncTimeoutClient()
-
-
Method Details
-
serviceA
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
-
serviceB
serviceB is a fast running service that will take 0.5 seconds in normal operation. That is considerably quicker than its configured time out of 2 seconds.- Returns:
- the result as a Future
- Throws:
InterruptedException
- the interrupted exception
-