Package com.iizix.txp
Interface ITXPPolicy
- All Known Implementing Classes:
TXPPolicyImpl
public interface ITXPPolicy
- Author:
- Freggle
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Generic policy action that should be interpreted by the coordinator in a certain context.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.
Method Details
onNodeReadyFailed
Returns the required action on a node that failed its work.- Parameters:
p
- the processn
- the node- Returns:
- the required action
onNodeCommitFailed
Returns the required action on a node that failed to commit.- Parameters:
p
- the processn
- the node- Returns:
- the required action
onNodeRollbackFailed
Returns the required action on a node that failed to rollback.- Parameters:
p
- the processn
- the node- Returns:
- the required action
onNodeTimeoutSignaled
Returns the required action on a node that timed out waiting for completion.- Parameters:
p
- the processn
- the node- Returns:
- the required action
onProcessTimeoutSignaled
Returns the required action on a process that timed out waiting for the nodes to do the work.- Parameters:
p
- the process- Returns:
- the required action