Package io.smallrye.faulttolerance.core
Class Invocation<V>
java.lang.Object
io.smallrye.faulttolerance.core.Invocation<V>
- All Implemented Interfaces:
FaultToleranceStrategy<V>
A "sentinel" fault tolerance strategy that does no processing, it only invokes the guarded
Callable
.
This is supposed to be used as the last fault tolerance strategy in a chain.
There's only one instance of this class, accessible using invocation()
.
-
Method Summary
Modifier and TypeMethodDescriptionapply
(FaultToleranceContext<V> ctx) Apply the fault tolerance strategy around the targetCallable
.static <V> Invocation
<V>
-
Method Details
-
invocation
-
apply
Description copied from interface:FaultToleranceStrategy
Apply the fault tolerance strategy around the targetCallable
. TheCallable
is wrapped in anFaultToleranceContext
.- Specified by:
apply
in interfaceFaultToleranceStrategy<V>
- Parameters:
ctx
- theInvocationContext
wrapping theCallable
guarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable
-