public interface TransactionContext extends TransactionalTaskContext
TransactionalMap.| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction()
Begins a transaction.
|
void |
commitTransaction()
Commits a transaction.
|
String |
getTxnId()
Gets the id that uniquely identifies the transaction.
|
XAResource |
getXaResource()
Deprecated.
since 3.5 please use HazelcastInstance.getXAResource()
|
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.String getTxnId()
@Deprecated XAResource getXaResource()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.