Interface FaultToleranceStrategy<V>

    • Method Detail

      • apply

        V apply​(InvocationContext<V> ctx)
         throws Exception
        Apply the fault tolerance strategy around the target Callable. The Callable is wrapped in an InvocationContext.
        Parameters:
        ctx - the InvocationContext wrapping the Callable guarded by this fault tolerance strategy
        Returns:
        result computed by the target Callable
        Throws:
        Exception - if result couldn't be computed