public interface TransactionalSystem extends Transactional
Transactional.
Transactional presents the application facing view
whereas this has all the possible steps of an implementation.
Normally, the implementation of commit() is split up.Transactional.Promote| Modifier and Type | Method and Description |
|---|---|
void |
attach(TransactionCoordinatorState coordinatorState)
Attach a transaction to this thread.
|
default void |
commit() |
void |
commitExec()
Do the 2-phase "commit" step
|
void |
commitPrepare()
Do the 2-phase "prepare" step after which
the transaction coordinator decides whether to commit
or abort.
|
TransactionCoordinatorState |
detach()
Suspend this transaction, detaching from the current thread.
|
Transaction |
getThreadTransaction()
Return the transaction object for this thread.
|
TransactionInfo |
getTransactionInfo()
Return an information view of the transaction for this thread, if any.
|
TransactionCoordinator |
getTxnMgr()
Get the associated
TransactionCoordinator |
abort, begin, begin, begin, end, isInTransaction, promote, promote, transactionMode, transactionTypedefault void commit()
commit in interface Transactionalvoid commitPrepare()
void commitExec()
TransactionCoordinatorState detach()
void attach(TransactionCoordinatorState coordinatorState)
TransactionCoordinator getTxnMgr()
TransactionCoordinatorTransactionInfo getTransactionInfo()
Transaction getThreadTransaction()
getTransactionInfo().Licensed under the Apache License, Version 2.0