Interface TransactionContext

  • All Superinterfaces:

    public interface TransactionContext
    extends TransactionalTaskContext
    Provides a context to perform transactional operations: beginning/committing transactions, but also retrieving transactional data-structures like the TransactionalMap. Any method accessed through TransactionContext interface can throw TransactionException if transaction is no longer valid and rolled back.
    • Method Detail

      • beginTransaction

        void beginTransaction()
        Begins a transaction.
        java.lang.IllegalStateException - if a transaction already is active.
      • rollbackTransaction

        void rollbackTransaction()
        Rollback of the current transaction.
        java.lang.IllegalStateException - if there is no active transaction.
      • getTxnId

        java.util.UUID getTxnId()
        Gets the ID that uniquely identifies the transaction.
        the transaction ID