Class FutureThreadPoolBulkhead<V>
java.lang.Object
io.smallrye.faulttolerance.core.bulkhead.BulkheadBase<Future<V>>
io.smallrye.faulttolerance.core.bulkhead.SemaphoreThreadPoolBulkhead<Future<V>>
io.smallrye.faulttolerance.core.bulkhead.FutureThreadPoolBulkhead<V>
- All Implemented Interfaces:
FaultToleranceStrategy<Future<V>>
Thread pool style bulkhead for
Future asynchronous executions.
Since this bulkhead is already executed on an extra thread, we don't have to
submit tasks to another executor or use an actual queue. We just limit
the task execution by semaphores. This kinda defeats the purpose of bulkheads,
but is the easiest way to implement them for Future. We do it properly
for CompletionStage, which is much more useful anyway.
-
Field Summary
Fields inherited from class io.smallrye.faulttolerance.core.bulkhead.BulkheadBase
description -
Constructor Summary
ConstructorsConstructorDescriptionFutureThreadPoolBulkhead(FaultToleranceStrategy<Future<V>> delegate, String description, int size, int queueSize) -
Method Summary
Methods inherited from class io.smallrye.faulttolerance.core.bulkhead.SemaphoreThreadPoolBulkhead
apply
-
Constructor Details
-
FutureThreadPoolBulkhead
public FutureThreadPoolBulkhead(FaultToleranceStrategy<Future<V>> delegate, String description, int size, int queueSize)
-