Package org.infinispan.transaction.tm
Class EmbeddedUserTransaction
java.lang.Object
org.infinispan.transaction.tm.EmbeddedUserTransaction
- All Implemented Interfaces:
javax.transaction.UserTransaction
A
UserTransaction
implementation that uses EmbeddedTransactionManager
.
This implementation does not support transaction timeout and it does not cancel long running transactions.
See EmbeddedBaseTransactionManager
for more details about its implementation.
- Since:
- 9.0
- Author:
- Bela Ban, Pedro Ruivo
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
commit()
int
void
rollback()
void
void
setTransactionTimeout
(int seconds)
-
Method Details
-
begin
public void begin() throws javax.transaction.NotSupportedException, javax.transaction.SystemException- Specified by:
begin
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.NotSupportedException
javax.transaction.SystemException
-
commit
public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, SecurityException, javax.transaction.SystemException- Specified by:
commit
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
SecurityException
javax.transaction.SystemException
-
rollback
- Specified by:
rollback
in interfacejavax.transaction.UserTransaction
- Throws:
IllegalStateException
javax.transaction.SystemException
-
setRollbackOnly
- Specified by:
setRollbackOnly
in interfacejavax.transaction.UserTransaction
- Throws:
IllegalStateException
javax.transaction.SystemException
-
getStatus
public int getStatus() throws javax.transaction.SystemException- Specified by:
getStatus
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws javax.transaction.SystemException - Specified by:
setTransactionTimeout
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.SystemException
-