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.Action
Constructor Summary
Method 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:ITXPPolicy
Returns the required action on a node that failed its work.- Specified by:
onNodeReadyFailed
in interfaceITXPPolicy
- Parameters:
p
- the processn
- the node- Returns:
- the required action
onNodeCommitFailed
Description copied from interface:ITXPPolicy
Returns the required action on a node that failed to commit.- Specified by:
onNodeCommitFailed
in interfaceITXPPolicy
- Parameters:
p
- the processn
- the node- Returns:
- the required action
onNodeRollbackFailed
Description copied from interface:ITXPPolicy
Returns the required action on a node that failed to rollback.- Specified by:
onNodeRollbackFailed
in interfaceITXPPolicy
- Parameters:
p
- the processn
- the node- Returns:
- the required action
onNodeTimeoutSignaled
Description copied from interface:ITXPPolicy
Returns the required action on a node that timed out waiting for completion.- Specified by:
onNodeTimeoutSignaled
in interfaceITXPPolicy
- Parameters:
p
- the processn
- the node- Returns:
- the required action
onProcessTimeoutSignaled
Description copied from interface:ITXPPolicy
Returns the required action on a process that timed out waiting for the nodes to do the work.- Specified by:
onProcessTimeoutSignaled
in interfaceITXPPolicy
- Parameters:
p
- the process- Returns:
- the required action