Package org.infinispan.transaction.tm
Class EmbeddedUserTransaction
- java.lang.Object
-
- org.infinispan.transaction.tm.EmbeddedUserTransaction
-
- All Implemented Interfaces:
UserTransaction
public class EmbeddedUserTransaction extends Object implements UserTransaction
AUserTransaction
implementation that usesEmbeddedTransactionManager
.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:
EmbeddedBaseTransactionManager
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
commit()
int
getStatus()
void
rollback()
void
setRollbackOnly()
void
setTransactionTimeout(int seconds)
-
-
-
Method Detail
-
begin
public void begin() throws NotSupportedException, SystemException
- Specified by:
begin
in interfaceUserTransaction
- Throws:
NotSupportedException
SystemException
-
commit
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException
- Specified by:
commit
in interfaceUserTransaction
- Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
SystemException
-
rollback
public void rollback() throws IllegalStateException, SystemException
- Specified by:
rollback
in interfaceUserTransaction
- Throws:
IllegalStateException
SystemException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException, SystemException
- Specified by:
setRollbackOnly
in interfaceUserTransaction
- Throws:
IllegalStateException
SystemException
-
getStatus
public int getStatus() throws SystemException
- Specified by:
getStatus
in interfaceUserTransaction
- Throws:
SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws SystemException
- Specified by:
setTransactionTimeout
in interfaceUserTransaction
- Throws:
SystemException
-
-