Class FutureExecution<V>

java.lang.Object
io.smallrye.faulttolerance.core.async.FutureExecution<V>
All Implemented Interfaces:
FaultToleranceStrategy<Future<V>>

public class FutureExecution<V> extends Object implements FaultToleranceStrategy<Future<V>>
Unlike ThreadOffload, this is supposed to be the first strategy in the chain. The remaining strategies are executed on an extra thread. This allows using synchronous execution of other strategies to implement Future-based @Asynchronous invocations, with two exceptions:
  • timeouts, where FutureTimeout is needed in front of Timeout;
  • bulkheads, where FutureBulkhead is used instead of Bulkhead.