Class JiniTransactionHolder

java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
org.openspaces.core.transaction.manager.JiniTransactionHolder
All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder
Direct Known Subclasses:
ExisitingJiniTransactionHolder

public class JiniTransactionHolder extends org.springframework.transaction.support.ResourceHolderSupport
A Jini transaction holder responsible for holding the current running transaction.
Author:
kimchy
See Also:
  • Constructor Details

    • JiniTransactionHolder

      public JiniTransactionHolder(Transaction.Created txCreated, int isolationLevel, LeaseRenewalManager leaseRenewalManager)
      Constructs a new jini transaction holder.
      Parameters:
      txCreated - The Jini transaction created object
      isolationLevel - The isolation level that transaction is executed under
      leaseRenewalManager - The lease renewal manager for the transaction (can be null)
  • Method Details

    • incRef

      public int incRef()
    • decRef

      public int decRef()
    • isDisableRollback

      public boolean isDisableRollback()
    • setDisableRollback

      public void setDisableRollback(boolean disableRollback)
    • isDisableCommit

      public boolean isDisableCommit()
    • setDisableCommit

      public void setDisableCommit(boolean disableCommit)
    • hasTransaction

      public boolean hasTransaction()
      Returns true if there is an existing transaction held by this bean, false if no transaction is in progress.
    • getTxCreated

      public Transaction.Created getTxCreated()
      Returns the Jini transaction created object. Can be null.
    • getTransaction

      public Transaction getTransaction()
      Returns the Jini transaction object. Can be null.
    • getIsolationLevel

      public int getIsolationLevel()
      Returns the current transaction isolation level. Maps to Spring TransactionDefinition.getIsolationLevel() values.
    • hasLeaseRenewalManager

      public boolean hasLeaseRenewalManager()
      Returns true if there is a lease renewal manager associated with this transaction
    • getLeaseRenewalManager

      public LeaseRenewalManager getLeaseRenewalManager()
      Returns the lease renewal manager associated with this transaction, can be null.