GigaSpaces XAP 8.0 API

org.openspaces.core.transaction.manager
Class ExistingJiniTransactionManager

java.lang.Object
  extended by org.openspaces.core.transaction.manager.ExistingJiniTransactionManager

public class ExistingJiniTransactionManager
extends Object

Author:
ester

Field Summary
static String CONTEXT
           
 
Constructor Summary
ExistingJiniTransactionManager()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT

public static final String CONTEXT
See Also:
Constant Field Values
Constructor Detail

ExistingJiniTransactionManager

public ExistingJiniTransactionManager()
Method Detail

bindExistingTransaction

public static boolean bindExistingTransaction(Transaction transaction)
Same as bindExistingTransaction(net.jini.core.transaction.Transaction, boolean, boolean) with rollback and commit flags set to true (disabled).


bindExistingTransaction

public 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.

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.

Parameters:
transaction - the transaction
disableCommit - Should commit be disabled or not
disableRollback - Should rollback be disabled or not

bindExistingTransaction

public 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.

Returns true if the transaction was bounded or not.

Parameters:
jiniHolder - the transaction jini holder

unbindExistingTransaction

public static ExisitingJiniTransactionHolder unbindExistingTransaction()
Unbinds the current on going bounded transaction from the thread context.


GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.