Class CheckedActionFactoryImple

java.lang.Object
com.arjuna.ats.internal.arjuna.coordinator.CheckedActionFactoryImple
All Implemented Interfaces:
CheckedActionFactory

public class CheckedActionFactoryImple extends Object implements CheckedActionFactory
Return a checked action instance. The factory
  • Constructor Details

    • CheckedActionFactoryImple

      public CheckedActionFactoryImple()
  • Method Details

    • getCheckedAction

      public CheckedAction getCheckedAction(Uid txId, String actionType)
      This implementation returns the same CheckedAction instance for every transaction. Since the check method of the instance returned is stateless this works. But it is not guaranteed to be correct for other implementations of CheckedAction so only follow this pattern if you understand the implications.
      Specified by:
      getCheckedAction in interface CheckedActionFactory
      Parameters:
      txId - the transaction id.
      actionType - the type of the transaction.
      Returns:
      the CheckedAction instance.