Interface IMultiVersionOperations

    • Method Detail

      • commit

        IVersion commit​(IEpoch epoch)
        Commits the pending transient state at the specified epoch.

        This automatically creates a new transient, writable state.

        Thread-safety: unless specific otherwise by the implementing class, it is not thread-safe to call commit(IEpoch) and rollback() concurrently.

        Parameters:
        epoch - the epoch associated with this commit
        Returns:
        the version that prevails after this commit (possibly an untouched current version if the commit had absolutely no impact on the state)
      • rollback

        void rollback()
        Rolls back the changes that have been written in the transient state.

        Thread-safety: unless specific otherwise by the implementing class, it is not thread-safe to call commit(IEpoch) and rollback() concurrently.