public interface TransactionContext extends TransactionalTaskContext
TransactionalMap.
 Any method accessed through TransactionContext interface can throw TransactionException if transaction is
 no longer valid and rolled back.| Modifier and Type | Method and Description | 
|---|---|
| void | beginTransaction()Begins a transaction. | 
| void | commitTransaction()Commits a transaction. | 
| UUID | getTxnId()Gets the ID that uniquely identifies the transaction. | 
| void | rollbackTransaction()Rollback of the current transaction. | 
getList, getMap, getMultiMap, getQueue, getSet, getTransactionalObjectvoid beginTransaction()
IllegalStateException - if a transaction already is active.void commitTransaction()
                throws TransactionException
TransactionException - if no transaction is active or the transaction could not be committed.void rollbackTransaction()
IllegalStateException - if there is no active transaction.UUID getTxnId()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.