@RequestScoped @Asynchronous public class AsyncClassLevelClient extends Object
Constructor and Description |
---|
AsyncClassLevelClient() |
Modifier and Type | Method and Description |
---|---|
Future<Connection> |
service(Future<?> waitCondition)
Service an operation until waitCondition is completed or 1000 second timeout.
|
CompletionStage<Connection> |
serviceCS(Future<?> waitCondition) |
CompletionStage<Connection> |
serviceCS(Future<?> waitCondition,
boolean throwException)
Service an operation until waitCondition is completed or 1000 second timeout.
|
@Asynchronous public Future<Connection> service(Future<?> waitCondition)
waitCondition
- Execution of this method will delay until the condition is finishedpublic CompletionStage<Connection> serviceCS(Future<?> waitCondition, boolean throwException)
waitCondition
- Execution of this method will delay until the condition is finishedthrowException
- Whether the method should throw an exception (true) or return a stage completed with exception (false)public CompletionStage<Connection> serviceCS(Future<?> waitCondition)
Copyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.