@Dependent public class BulkheadCompletionStageBean extends Object
Constructor and Description |
---|
BulkheadCompletionStageBean() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
serviceCS(CompletionStage<Void> stage)
Returns
stage as the result |
@Asynchronous @Bulkhead(value=2, waitingTaskQueue=2) public CompletionStage<Void> serviceCS(CompletionStage<Void> stage)
stage
as the result
Allows two concurrent executions and two queued.
As this is an async method, it won't be considered "complete" by Fault Tolerance until stage
completes.
stage
- the CompletionStage to return as the resultstage
Copyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.