Package com.iizix.txp.impl
Class TXPPolicyImpl
java.lang.Object
com.iizix.txp.impl.TXPPolicyImpl
- All Implemented Interfaces:
ITXPPolicy
A (for now) very basic and crude implementation of a
TXPolicy- Author:
- Freggle
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.txp.ITXPPolicy
ITXPPolicy.ActionConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionReturns the required action on a node that failed to commit.Returns the required action on a node that failed its work.Returns the required action on a node that failed to rollback.Returns the required action on a node that timed out waiting for completion.Returns the required action on a process that timed out waiting for the nodes to do the work.
Constructor Details
TXPPolicyImpl
public TXPPolicyImpl()
Method Details
onNodeReadyFailed
Description copied from interface:ITXPPolicyReturns the required action on a node that failed its work.- Specified by:
onNodeReadyFailedin interfaceITXPPolicy- Parameters:
p- the processn- the node- Returns:
- the required action
onNodeCommitFailed
Description copied from interface:ITXPPolicyReturns the required action on a node that failed to commit.- Specified by:
onNodeCommitFailedin interfaceITXPPolicy- Parameters:
p- the processn- the node- Returns:
- the required action
onNodeRollbackFailed
Description copied from interface:ITXPPolicyReturns the required action on a node that failed to rollback.- Specified by:
onNodeRollbackFailedin interfaceITXPPolicy- Parameters:
p- the processn- the node- Returns:
- the required action
onNodeTimeoutSignaled
Description copied from interface:ITXPPolicyReturns the required action on a node that timed out waiting for completion.- Specified by:
onNodeTimeoutSignaledin interfaceITXPPolicy- Parameters:
p- the processn- the node- Returns:
- the required action
onProcessTimeoutSignaled
Description copied from interface:ITXPPolicyReturns the required action on a process that timed out waiting for the nodes to do the work.- Specified by:
onProcessTimeoutSignaledin interfaceITXPPolicy- Parameters:
p- the process- Returns:
- the required action