Class ExistingJiniTransactionManager
java.lang.Object
org.openspaces.core.transaction.manager.ExistingJiniTransactionManager
- Author:
- ester
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbindExistingTransaction(Transaction transaction) Same asbindExistingTransaction(net.jini.core.transaction.Transaction, boolean, boolean)with rollback and commit flags set totrue(disabled).static booleanbindExistingTransaction(Transaction transaction, boolean disableCommit, boolean disableRollback) Binds the provided JiniTransaction, which means that any operation under the current thread byGigaSpacewill be performed under it.static booleanBinds the provided jiniHolder which means that any operation under the current thread byGigaSpacewill be performed under it.Unbinds the current on going bounded transaction from the thread context.Unbinds the current on going bounded transaction from the thread context if possible.
-
Field Details
-
CONTEXT
- See Also:
-
-
Constructor Details
-
ExistingJiniTransactionManager
public ExistingJiniTransactionManager()
-
-
Method Details
-
bindExistingTransaction
Same asbindExistingTransaction(net.jini.core.transaction.Transaction, boolean, boolean)with rollback and commit flags set totrue(disabled). -
bindExistingTransaction
public static boolean bindExistingTransaction(Transaction transaction, boolean disableCommit, boolean disableRollback) Binds the provided JiniTransaction, which means that any operation under the current thread byGigaSpacewill be performed under it.Allows to control if calls for commit/rollback will be disabled or not (i.e. transaction is controlled by an outer entity).
Returns
trueif the transaction was bounded or not.- Parameters:
transaction- the transactiondisableCommit- Should commit be disabled or notdisableRollback- Should rollback be disabled or not
-
bindExistingTransaction
Binds the provided jiniHolder which means that any operation under the current thread byGigaSpacewill be performed under it.Returns
trueif the transaction was bounded or not.- Parameters:
jiniHolder- the transaction jini holder
-
unbindExistingTransaction
Unbinds the current on going bounded transaction from the thread context. -
unbindExistingTransactionIfPossible
Unbinds the current on going bounded transaction from the thread context if possible.
-