@RequestScoped public class AsyncTimeoutClient extends Object
| Constructor and Description |
|---|
AsyncTimeoutClient() |
| Modifier and Type | Method and Description |
|---|---|
Future<Connection> |
serviceA()
serviceA is a slow running service that will take 5 seconds in normal operation.
|
Future<Connection> |
serviceB()
serviceB is a fast running service that will take 0.5 seconds in normal operation.
|
@Timeout(value=2000L) @Asynchronous public Future<Connection> serviceA() throws InterruptedException
InterruptedException - the interrupted exception@Timeout(value=2000L) @Asynchronous public Future<Connection> serviceB() throws InterruptedException
InterruptedException - the interrupted exceptionCopyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.