public class FutureExecution<V> extends Object implements FaultToleranceStrategy<Future<V>>
| Constructor and Description |
|---|
FutureExecution(FaultToleranceStrategy<Future<V>> delegate,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
Future<V> |
apply(InvocationContext<Future<V>> ctx)
Apply the fault tolerance strategy around the target
Callable. |
public FutureExecution(FaultToleranceStrategy<Future<V>> delegate, Executor executor)
public Future<V> apply(InvocationContext<Future<V>> ctx)
FaultToleranceStrategyCallable.
The Callable is wrapped in an InvocationContext.apply in interface FaultToleranceStrategy<Future<V>>ctx - the InvocationContext wrapping the Callable guarded by this fault tolerance strategyCallableCopyright © 2018–2020. All rights reserved.