public class CompletionStageBulkhead<V> extends BulkheadBase<CompletionStage<V>>
BulkheadBase.MetricsRecorder| Constructor and Description |
|---|
CompletionStageBulkhead(FaultToleranceStrategy<CompletionStage<V>> delegate,
String description,
ExecutorService executor,
int size,
int queueSize,
BulkheadBase.MetricsRecorder recorder) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<V> |
apply(InvocationContext<CompletionStage<V>> ctx)
Apply the fault tolerance strategy around the target
Callable. |
public CompletionStageBulkhead(FaultToleranceStrategy<CompletionStage<V>> delegate, String description, ExecutorService executor, int size, int queueSize, BulkheadBase.MetricsRecorder recorder)
public CompletionStage<V> apply(InvocationContext<CompletionStage<V>> ctx)
FaultToleranceStrategyCallable.
The Callable is wrapped in an InvocationContext.ctx - the InvocationContext wrapping the Callable guarded by this fault tolerance strategyCallableCopyright © 2018–2020. All rights reserved.