Class TxDecisionMaker.LockDecisionMaker<K,​V>

    • Constructor Detail

      • LockDecisionMaker

        LockDecisionMaker​(int mapId,
                          Transaction transaction)
    • Method Detail

      • decide

        public MVMap.Decision decide​(VersionedValue<V> existingValue,
                                     VersionedValue<V> providedValue)
        Description copied from class: MVMap.DecisionMaker
        Makes a decision about how to proceed with the update.
        Overrides:
        decide in class TxDecisionMaker<K,​V>
        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
      • getNewValue

        V getNewValue​(VersionedValue<V> existingValue)
        Description copied from class: TxDecisionMaker
        Get the new value. This implementation always return the current value (ignores the parameter).
        Overrides:
        getNewValue in class TxDecisionMaker<K,​V>
        Parameters:
        existingValue - the parameter value
        Returns:
        the current value.