Package org.apache.ignite.tx
Interface Transaction
public interface Transaction
The transaction.
-
Method Summary
-
Method Details
-
commit
Synchronously commits a transaction. A commit of a completed or ending transaction has no effect and always succeeds when the transaction is completed.- Throws:
TransactionException
- If a transaction can't be committed.
-
commitAsync
CompletableFuture<Void> commitAsync()Asynchronously commits a transaction. A commit of a completed or ending transaction has no effect and always succeeds when the transaction is completed.- Returns:
- The future.
-
rollback
Synchronously rolls back a transaction. A rollback of a completed or ending transaction has no effect and always succeeds when the transaction is completed.- Throws:
TransactionException
- If a transaction can't be rolled back.
-
rollbackAsync
CompletableFuture<Void> rollbackAsync()Asynchronously rolls back a transaction. A rollback of a completed or ending transaction has no effect and always succeeds when the transaction is completed.- Returns:
- The future.
-
isReadOnly
boolean isReadOnly()Returnstrue
if given transaction is a read-only,false
otherwise.- Returns:
- The read-only flag.
-