Class SemaphoreBulkhead<V>
java.lang.Object
io.smallrye.faulttolerance.core.bulkhead.BulkheadBase<V>
io.smallrye.faulttolerance.core.bulkhead.SemaphoreBulkhead<V>
- All Implemented Interfaces:
FaultToleranceStrategy<V>
Semaphore style bulkhead for synchronous executions.
-
Field Summary
Fields inherited from class io.smallrye.faulttolerance.core.bulkhead.BulkheadBase
description -
Constructor Summary
ConstructorsConstructorDescriptionSemaphoreBulkhead(FaultToleranceStrategy<V> delegate, String description, int size) -
Method Summary
Modifier and TypeMethodDescriptionapply(InvocationContext<V> ctx) Apply the fault tolerance strategy around the targetCallable.
-
Constructor Details
-
SemaphoreBulkhead
-
-
Method Details
-
apply
Description copied from interface:FaultToleranceStrategyApply the fault tolerance strategy around the targetCallable. TheCallableis wrapped in anInvocationContext.- Parameters:
ctx- theInvocationContextwrapping theCallableguarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable - Throws:
Exception- if result couldn't be computed
-