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 Summary
ConstructorsConstructorDescriptionJiniTransactionHolder(Transaction.Created txCreated, int isolationLevel, LeaseRenewalManager leaseRenewalManager) Constructs a new jini transaction holder. -
Method Summary
Modifier and TypeMethodDescriptionintdecRef()intReturns the current transaction isolation level.Returns the lease renewal manager associated with this transaction, can benull.Returns the Jini transaction object.Returns the Jini transaction created object.booleanReturnstrueif there is a lease renewal manager associated with this transactionbooleanReturnstrueif there is an existing transaction held by this bean,falseif no transaction is in progress.intincRef()booleanbooleanvoidsetDisableCommit(boolean disableCommit) voidsetDisableRollback(boolean disableRollback) Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
-
Constructor Details
-
JiniTransactionHolder
public JiniTransactionHolder(Transaction.Created txCreated, int isolationLevel, LeaseRenewalManager leaseRenewalManager) Constructs a new jini transaction holder.- Parameters:
txCreated- The Jini transaction created objectisolationLevel- The isolation level that transaction is executed underleaseRenewalManager- The lease renewal manager for the transaction (can benull)
-
-
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()Returnstrueif there is an existing transaction held by this bean,falseif no transaction is in progress. -
getTxCreated
Returns the Jini transaction created object. Can benull. -
getTransaction
Returns the Jini transaction object. Can benull. -
getIsolationLevel
public int getIsolationLevel()Returns the current transaction isolation level. Maps to SpringTransactionDefinition.getIsolationLevel()values. -
hasLeaseRenewalManager
public boolean hasLeaseRenewalManager()Returnstrueif there is a lease renewal manager associated with this transaction -
getLeaseRenewalManager
Returns the lease renewal manager associated with this transaction, can benull.
-