Package com.iizix.txp
Interface ITXPPolicy
- All Known Implementing Classes:
- TXPPolicyImpl
 - public interface ITXPPolicy- Author:
- Freggle
 
- Nested Class Summary- Nested Classes - Modifier and Type - Interface - Description - static class- ITXPPolicy.ActionGeneric policy action that should be interpreted by the coordinator in a certain context.
 - Method Summary- All Methods Instance Methods Abstract Methods - Modifier and Type - Method - Description - ITXPPolicy.Action- onNodeCommitFailed(ITXProcess p, ITXPNode n)Returns the required action on a node that failed to commit.- ITXPPolicy.Action- onNodeReadyFailed(ITXProcess p, ITXPNode n)Returns the required action on a node that failed its work.- ITXPPolicy.Action- onNodeRollbackFailed(ITXProcess p, ITXPNode n)Returns the required action on a node that failed to rollback.- ITXPPolicy.Action- onNodeTimeoutSignaled(ITXProcess p, ITXPNode n)Returns the required action on a node that timed out waiting for completion.- ITXPPolicy.Action- onProcessTimeoutSignaled(ITXProcess p)Returns the required action on a process that timed out waiting for the nodes to do the work.
 
- Method Detail- onNodeReadyFailed- ITXPPolicy.Action onNodeReadyFailed(ITXProcess p, ITXPNode n) Returns the required action on a node that failed its work.- Parameters:
- p- the process
- n- the node
- Returns:
- the required action
 
 - onNodeCommitFailed- ITXPPolicy.Action onNodeCommitFailed(ITXProcess p, ITXPNode n) Returns the required action on a node that failed to commit.- Parameters:
- p- the process
- n- the node
- Returns:
- the required action
 
 - onNodeRollbackFailed- ITXPPolicy.Action onNodeRollbackFailed(ITXProcess p, ITXPNode n) Returns the required action on a node that failed to rollback.- Parameters:
- p- the process
- n- the node
- Returns:
- the required action
 
 - onNodeTimeoutSignaled- ITXPPolicy.Action onNodeTimeoutSignaled(ITXProcess p, ITXPNode n) Returns the required action on a node that timed out waiting for completion.- Parameters:
- p- the process
- n- the node
- Returns:
- the required action
 
 - onProcessTimeoutSignaled- ITXPPolicy.Action onProcessTimeoutSignaled(ITXProcess p) 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