Interface Transaction


public interface Transaction
A transaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    Commit the current transaction.
    Return the transaction completion Future that succeeds when the transaction commits and fails with TransactionRollbackException when the transaction rolls back.
    Rollback the transaction and release the associated resources.
  • Method Details

    • commit

      Future<Void> commit()
      Commit the current transaction.
    • rollback

      Future<Void> rollback()
      Rollback the transaction and release the associated resources.
    • completion

      Future<Void> completion()
      Return the transaction completion Future that succeeds when the transaction commits and fails with TransactionRollbackException when the transaction rolls back.
      Returns:
      the transaction result