Package com.iizix.txp

Interface ITXPPolicy

  • All Known Implementing Classes:
    TXPPolicyImpl

    public interface ITXPPolicy
    Author:
    Freggle
    • 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