Interface Transaction
public interface Transaction
A transaction.
-
Method Summary
Modifier and TypeMethodDescriptioncommit()Commit the current transaction.Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.rollback()Rollback the transaction and release the associated resources.
-
Method Details
-
commit
-
rollback
-
completion
Return the transaction completionFuturethat succeeds when the transaction commits and fails withTransactionRollbackExceptionwhen the transaction rolls back.- Returns:
- the transaction result
-