|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionContext
Provides a context to do transactional operations; so beginning/committing transactions, but also retrieving
transactional data-structures like the TransactionalMap
.
Method Summary | |
---|---|
void |
beginTransaction()
Begins a transaction. |
void |
commitTransaction()
Commits a transaction. |
String |
getTxnId()
Gets the id that uniquely identifies the transaction. |
XAResource |
getXaResource()
Gets xaResource which will participate in XATransaction |
boolean |
isXAManaged()
Indicates that related transaction is managed by XAResource |
void |
rollbackTransaction()
Rollback of the current transaction. |
Methods inherited from interface com.hazelcast.transaction.TransactionalTaskContext |
---|
getList, getMap, getMultiMap, getQueue, getSet, getTransactionalObject |
Method Detail |
---|
void 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 no there is no active transaction.String getTxnId()
XAResource getXaResource()
boolean isXAManaged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |