Class CheckedActionFactoryImple
java.lang.Object
com.arjuna.ats.internal.arjuna.coordinator.CheckedActionFactoryImple
- All Implemented Interfaces:
CheckedActionFactory
Return a checked action instance. The factory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCheckedAction
(Uid txId, String actionType) This implementation returns the same CheckedAction instance for every transaction.
-
Constructor Details
-
CheckedActionFactoryImple
public CheckedActionFactoryImple()
-
-
Method Details
-
getCheckedAction
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 interfaceCheckedActionFactory
- Parameters:
txId
- the transaction id.actionType
- the type of the transaction.- Returns:
- the CheckedAction instance.
-