@RequestScoped @Timeout(value=500L) public class ShorterTimeoutClient extends Object
Constructor and Description |
---|
ShorterTimeoutClient() |
Modifier and Type | Method and Description |
---|---|
Connection |
serviceA(long timeToSleep)
serviceA uses the class scoped Fault Tolerance timeout of 0.5 seconds.
|
Connection |
serviceB(long timeToSleep)
serviceB specifies a an overriding Timeout longer than the default, at 2 seconds
|
public Connection serviceA(long timeToSleep)
timeToSleep
- How long should the execution take in millis@Timeout(value=2000L) public Connection serviceB(long timeToSleep)
timeToSleep
- How long should the execution take in millisCopyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.