Class AsyncClassLevelTimeoutClient
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionserviceA()
serviceA is a slow running service that will take 5 seconds in normal operation.
-
Constructor Details
-
AsyncClassLevelTimeoutClient
public AsyncClassLevelTimeoutClient()
-
-
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
-