Class TimeoutClient
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.timeout.clientserver.TimeoutClient
A client to test Timeouts
- Author:
- Neil Young
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionserviceA
(long timeToSleep) serviceA uses the default Fault Tolerance timeout of 1 second.serviceB
(long timeToSleep) serviceB specifies a Timeout longer than the default, at 2 secondsserviceC
(long timeToSleep) serviceC specifies a Timeout shorter than the default, at .5 secondsserviceD
(long timeToSleepInMillis) serviceD specifies a Timeout longer than the default, at 2 seconds.
-
Constructor Details
-
TimeoutClient
public TimeoutClient()
-
-
Method Details
-
serviceA
serviceA uses the default Fault Tolerance timeout of 1 second.- Parameters:
timeToSleep
- How long should the execution take in millis- Returns:
- null or exception is raised
-
serviceB
serviceB specifies a Timeout longer than the default, at 2 seconds- Parameters:
timeToSleep
- How long should the execution take in millis- Returns:
- null or exception is raised
-
serviceC
serviceC specifies a Timeout shorter than the default, at .5 seconds- Parameters:
timeToSleep
- How long should the execution take in millis- Returns:
- null or exception is raised
-
serviceD
serviceD specifies a Timeout longer than the default, at 2 seconds.- Parameters:
timeToSleepInMillis
- How long should the execution take in millis- Returns:
- null or exception is raised
-