Class RememberEventLoop<V>
java.lang.Object
io.smallrye.faulttolerance.core.async.RememberEventLoop<V>
- All Implemented Interfaces:
FaultToleranceStrategy<CompletionStage<V>>
public class RememberEventLoop<V>
extends Object
implements FaultToleranceStrategy<CompletionStage<V>>
-
Constructor Summary
ConstructorsConstructorDescriptionRememberEventLoop(FaultToleranceStrategy<CompletionStage<V>> delegate, EventLoop eventLoop) -
Method Summary
Modifier and TypeMethodDescriptionapply(InvocationContext<CompletionStage<V>> ctx) Apply the fault tolerance strategy around the targetCallable.
-
Constructor Details
-
RememberEventLoop
-
-
Method Details
-
apply
Description copied from interface:FaultToleranceStrategyApply the fault tolerance strategy around the targetCallable. TheCallableis wrapped in anInvocationContext.- Specified by:
applyin interfaceFaultToleranceStrategy<V>- Parameters:
ctx- theInvocationContextwrapping theCallableguarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable - Throws:
Exception- if result couldn't be computed
-