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
AUserTransactionimplementation that usesEmbeddedTransactionManager.This implementation does not support transaction timeout and it does not cancel long running transactions.
See
EmbeddedBaseTransactionManagerfor 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 voidbegin()voidcommit()intgetStatus()voidrollback()voidsetRollbackOnly()voidsetTransactionTimeout(int seconds)
-
-
-
Method Detail
-
begin
public void begin() throws NotSupportedException, SystemException- Specified by:
beginin interfaceUserTransaction- Throws:
NotSupportedExceptionSystemException
-
commit
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException- Specified by:
commitin interfaceUserTransaction- Throws:
RollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionSystemException
-
rollback
public void rollback() throws IllegalStateException, SystemException- Specified by:
rollbackin interfaceUserTransaction- Throws:
IllegalStateExceptionSystemException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException, SystemException- Specified by:
setRollbackOnlyin interfaceUserTransaction- Throws:
IllegalStateExceptionSystemException
-
getStatus
public int getStatus() throws SystemException- Specified by:
getStatusin interfaceUserTransaction- Throws:
SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws SystemException- Specified by:
setTransactionTimeoutin interfaceUserTransaction- Throws:
SystemException
-
-