Package org.infinispan.transaction.tm
Class EmbeddedBaseTransactionManager
- java.lang.Object
-
- org.infinispan.commons.tx.TransactionManagerImpl
-
- org.infinispan.transaction.tm.EmbeddedBaseTransactionManager
-
- All Implemented Interfaces:
TransactionManager
- Direct Known Subclasses:
BatchModeTransactionManager
,EmbeddedTransactionManager
public class EmbeddedBaseTransactionManager extends TransactionManagerImpl
A simpleTransactionManager
implementation.It provides the basic to handle
Transaction
s and supports anyXAResource
.Implementation notes:
- The state is kept in memory only.
- Does not support recover.
- Does not
support multi-thread transactions. Although it is possible to execute the transactions in multiple threads, this
transaction manager does not wait for them to complete. It is the application responsibility to wait before invoking
TransactionManagerImpl.commit()
orTransactionManagerImpl.rollback()
- The transaction should not block. It is no possible to
TransactionManagerImpl.setTransactionTimeout(int)
and this transaction manager won't rollback the transaction if it takes too long.
If you need any of the requirements above, please consider use another implementation.
Also, it does not implement any 1-phase-commit optimization.
- Since:
- 9.0
- Author:
- Bela Ban, Pedro Ruivo
-
-
Field Summary
-
Fields inherited from class org.infinispan.commons.tx.TransactionManagerImpl
transactionManagerId
-
-
Constructor Summary
Constructors Constructor Description EmbeddedBaseTransactionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EmbeddedTransaction
createTransaction()
EmbeddedTransaction
getTransaction()
-
Methods inherited from class org.infinispan.commons.tx.TransactionManagerImpl
begin, commit, dissociateTransaction, getStatus, resume, rollback, setRollbackOnly, setTransactionTimeout, suspend
-
-
-
-
Method Detail
-
createTransaction
protected EmbeddedTransaction createTransaction()
- Specified by:
createTransaction
in classTransactionManagerImpl
-
getTransaction
public EmbeddedTransaction getTransaction()
- Specified by:
getTransaction
in interfaceTransactionManager
- Overrides:
getTransaction
in classTransactionManagerImpl
-
-