public class SemaphoreBulkhead<V> extends BulkheadBase<V>
BulkheadBase.MetricsRecorder| Constructor and Description |
|---|
SemaphoreBulkhead(FaultToleranceStrategy<V> delegate,
String description,
int size,
BulkheadBase.MetricsRecorder metricsRecorder) |
| Modifier and Type | Method and Description |
|---|---|
V |
apply(InvocationContext<V> ctx)
Apply the fault tolerance strategy around the target
Callable. |
public SemaphoreBulkhead(FaultToleranceStrategy<V> delegate, String description, int size, BulkheadBase.MetricsRecorder metricsRecorder)
public V apply(InvocationContext<V> ctx) throws Exception
FaultToleranceStrategyCallable.
The Callable is wrapped in an InvocationContext.ctx - the InvocationContext wrapping the Callable guarded by this fault tolerance strategyCallableException - if result couldn't be computedCopyright © 2018–2020. All rights reserved.