Class RollbackDecisionMaker


  • final class RollbackDecisionMaker
    extends MVMap.DecisionMaker<Record<?,​?>>
    Class RollbackDecisionMaker process undo log record during transaction rollback.
    • Method Detail

      • decide

        public MVMap.Decision decide​(Record existingValue,
                                     Record providedValue)
        Description copied from class: MVMap.DecisionMaker
        Makes a decision about how to proceed with the update.
        Specified by:
        decide in class MVMap.DecisionMaker<Record<?,​?>>
        Parameters:
        existingValue - value currently exists in the map
        providedValue - original input value
        Returns:
        PUT if a new value need to replace existing one or a new value to be inserted if there is none REMOVE if existing value should be deleted ABORT if update operation should be aborted or repeated later REPEAT if update operation should be repeated immediately
      • reset

        public void reset()
        Description copied from class: MVMap.DecisionMaker
        Resets internal state (if any) of a this DecisionMaker to it's initial state. This method is invoked whenever concurrent update failure is encountered, so we can re-start update process.
        Overrides:
        reset in class MVMap.DecisionMaker<Record<?,​?>>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object