Class BulkheadCompletionStageBean
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.bulkhead.clientserver.BulkheadCompletionStageBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionserviceCS
(CompletionStage<Void> stage) Returnsstage
as the result
-
Constructor Details
-
BulkheadCompletionStageBean
public BulkheadCompletionStageBean()
-
-
Method Details
-
serviceCS
@Asynchronous @Bulkhead(value=2, waitingTaskQueue=2) public CompletionStage<Void> serviceCS(CompletionStage<Void> stage) Returnsstage
as the resultAllows two concurrent executions and two queued.
As this is an async method, it won't be considered "complete" by Fault Tolerance until
stage
completes.- Parameters:
stage
- the CompletionStage to return as the result- Returns:
stage
-