public class ExistingJiniTransactionManager extends Object
| Constructor and Description |
|---|
ExistingJiniTransactionManager() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
bindExistingTransaction(ExisitingJiniTransactionHolder jiniHolder)
Binds the provided jiniHolder which means that any operation under the current thread by
GigaSpace will be performed under it. |
static boolean |
bindExistingTransaction(Transaction transaction)
Same as
bindExistingTransaction(net.jini.core.transaction.Transaction, boolean,
boolean) with rollback and commit flags set to true (disabled). |
static boolean |
bindExistingTransaction(Transaction transaction,
boolean disableCommit,
boolean disableRollback)
Binds the provided Jini
Transaction, which means that any
operation under the current thread by GigaSpace will be performed
under it. |
static ExisitingJiniTransactionHolder |
unbindExistingTransaction()
Unbinds the current on going bounded transaction from the thread context.
|
static ExisitingJiniTransactionHolder |
unbindExistingTransactionIfPossible()
Unbinds the current on going bounded transaction from the thread context if possible.
|
public static final String CONTEXT
public static boolean bindExistingTransaction(Transaction transaction)
bindExistingTransaction(net.jini.core.transaction.Transaction, boolean,
boolean) with rollback and commit flags set to true (disabled).public static boolean bindExistingTransaction(Transaction transaction, boolean disableCommit, boolean disableRollback)
Transaction, which means that any
operation under the current thread by GigaSpace will 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 true if the transaction was bounded or not.
transaction - the transactiondisableCommit - Should commit be disabled or notdisableRollback - Should rollback be disabled or notpublic static boolean bindExistingTransaction(ExisitingJiniTransactionHolder jiniHolder)
GigaSpace will be performed under it.
Returns true if the transaction was bounded or not.
jiniHolder - the transaction jini holderpublic static ExisitingJiniTransactionHolder unbindExistingTransaction()
public static ExisitingJiniTransactionHolder unbindExistingTransactionIfPossible()
Copyright © GigaSpaces.