Interface FaultToleranceService

  • All Known Implementing Classes:
    FaultToleranceServiceImpl

    public interface FaultToleranceService
    Essentially a list of all methods needed to process FT behaviour. Decouples the FT processing facilities and state from any specific implementation to allow e.g. unit testing.
    Author:
    Jan Bernitt
    • Method Detail

      • getMethodContext

        FaultToleranceMethodContext getMethodContext​(jakarta.interceptor.InvocationContext context,
                                                     FaultTolerancePolicy policy,
                                                     jakarta.enterprise.context.control.RequestContextController requestContextController)
        Get or create the context object for processing the annotated method represented by the given InvocationContext.
        Parameters:
        context - represents the FT annotated method being called
        policy - the policy being used for this execution
        requestContextController - the controller to use or null
        Returns:
        the FaultToleranceMethodContext to use to process the method invocation with FT semantics. This is a context specific to the target object and called method.