private void recoverTransaction ( TransactionId transactionId , TransactionInfo transactionInfo ) { switch ( transactionInfo . state ) { case PREPARING : completePreparingTransaction ( transactionId ) ; break ; case COMMITTING : completeCommittingTransaction ( transactionId ) ; break ; case ROLLING_BACK : completeRollingBackTransaction ( transactionId ) ; break ; default : break ; } }
Recovers and completes the given transaction .