Class FaultToleranceMethodContextImpl

  • All Implemented Interfaces:
    FaultToleranceMethodContext

    public final class FaultToleranceMethodContextImpl
    extends Object
    implements FaultToleranceMethodContext
    The execution context for a FT annotated method. Each specific Method on a specific Class has a corresponding instance of this FaultToleranceMethodContext. Multiple instances of that class share a context (since MP FT 3.0). When the annotated Method is invoked this implementation is bound to that context by boundTo(InvocationContext, FaultTolerancePolicy) with a fresh instance of this class. It shares all the state with other invocations for the same method except the InvocationContext and the FaultTolerancePolicy which are specific for each invocation. This way the full FT invocation state for each method invocation is determined at the beginning of applying FT semantics and cannot change during execution (except for those counters and queues that are meant to track the shared state changes of course).
    Author:
    Jan Bernitt