Interface ITransaction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void commit​(IEpoch epoch)
      Commits this transaction into the base version.
      boolean isEmpty()
      Returns whether this transaction does not have any transient data to commit.
      void prepareCommit​(IEpoch epoch)
      Prepares this transaction for committing.
      void rollback()
      Rolls the transaction back.
    • Method Detail

      • isEmpty

        boolean isEmpty()
        Returns whether this transaction does not have any transient data to commit.
        Returns:
        true if this transaction does not have any transient data to commit, false otherwise
      • prepareCommit

        void prepareCommit​(IEpoch epoch)
        Prepares this transaction for committing.
        Parameters:
        epoch - the commit's epoch
      • commit

        void commit​(IEpoch epoch)
        Commits this transaction into the base version.
        Parameters:
        epoch - the commit's epoch
      • rollback

        void rollback()
        Rolls the transaction back.

        This transaction object cannot be re-used after being rolled back.