Class EmbeddedUserTransaction

java.lang.Object
org.infinispan.transaction.tm.EmbeddedUserTransaction
All Implemented Interfaces:
jakarta.transaction.UserTransaction

public class EmbeddedUserTransaction extends Object implements jakarta.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 Details

    • begin

      public void begin() throws jakarta.transaction.NotSupportedException, jakarta.transaction.SystemException
      Specified by:
      begin in interface jakarta.transaction.UserTransaction
      Throws:
      jakarta.transaction.NotSupportedException
      jakarta.transaction.SystemException
    • commit

      public void commit() throws jakarta.transaction.RollbackException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, SecurityException, jakarta.transaction.SystemException
      Specified by:
      commit in interface jakarta.transaction.UserTransaction
      Throws:
      jakarta.transaction.RollbackException
      jakarta.transaction.HeuristicMixedException
      jakarta.transaction.HeuristicRollbackException
      SecurityException
      jakarta.transaction.SystemException
    • rollback

      public void rollback() throws IllegalStateException, jakarta.transaction.SystemException
      Specified by:
      rollback in interface jakarta.transaction.UserTransaction
      Throws:
      IllegalStateException
      jakarta.transaction.SystemException
    • setRollbackOnly

      public void setRollbackOnly() throws IllegalStateException, jakarta.transaction.SystemException
      Specified by:
      setRollbackOnly in interface jakarta.transaction.UserTransaction
      Throws:
      IllegalStateException
      jakarta.transaction.SystemException
    • getStatus

      public int getStatus() throws jakarta.transaction.SystemException
      Specified by:
      getStatus in interface jakarta.transaction.UserTransaction
      Throws:
      jakarta.transaction.SystemException
    • setTransactionTimeout

      public void setTransactionTimeout(int seconds) throws jakarta.transaction.SystemException
      Specified by:
      setTransactionTimeout in interface jakarta.transaction.UserTransaction
      Throws:
      jakarta.transaction.SystemException