@ApplicationScoped public class BulkheadMetricBean extends Object
| Constructor and Description |
|---|
BulkheadMetricBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
waitFor(Future<?> future)
Wait for
future to be completed |
Future<Void> |
waitForAsync(Future<?> future)
WaitFor method for testing async calls
|
void |
waitForHistogram(Future<?> future)
Separate waitFor method for testing execution time histogram
|
void |
waitForRunningExecutions(int executions)
Wait for the given number of method executions to be running in this bean
|
@Bulkhead(value=2) public void waitFor(Future<?> future)
future to be completedfuture - to complete@Bulkhead(value=2) public void waitForHistogram(Future<?> future)
future - to complete@Asynchronous @Bulkhead(value=2, waitingTaskQueue=2) public Future<Void> waitForAsync(Future<?> future)
future - to completepublic void waitForRunningExecutions(int executions)
This method will wait three seconds before returning an exception
executions - number of executionsCopyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.