org.openspaces.esb.mule.transaction
Class MuleXATransactionProvider
java.lang.Object
org.openspaces.esb.mule.transaction.MuleXATransactionProvider
- All Implemented Interfaces:
- TransactionProvider
public class MuleXATransactionProvider
- extends Object
- implements TransactionProvider
- Author:
- kimchy (Shay Banon)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleXATransactionProvider
public MuleXATransactionProvider()
getCurrentTransaction
public net.jini.core.transaction.Transaction.Created getCurrentTransaction(Object transactionalContext,
IJSpace space)
- Description copied from interface:
TransactionProvider
- Returns the currently running transaction (usually managed externally/declarative). A
transactional context can be passed and optionally used in order to fetch the current running
transaction.
If no transaction is currently executing, null
value will be returned. This
usually means that the operation will be performed without a transaction.
- Specified by:
getCurrentTransaction
in interface TransactionProvider
- Parameters:
transactionalContext
- Transactional context to (optionally) fetch the transaction byspace
- The actual Space this operation will be performed on
- Returns:
- The transaction object to be used with
IJSpace
operations.
Can be null
.
getCurrentTransactionIsolationLevel
public int getCurrentTransactionIsolationLevel(Object transactionalContext)
- Description copied from interface:
TransactionProvider
- Returns the currently running transaction isolation level (mapping to Spring
TransactionDefinition.getIsolationLevel()
values). A
transactional context can be passed and optionally used in order to fetch the current running
transaction.
- Specified by:
getCurrentTransactionIsolationLevel
in interface TransactionProvider
- Parameters:
transactionalContext
- Transactional context to (optionally) fetch the transaction by
- Returns:
- The transaction isolation level mapping to Spring
TransactionDefinition.getIsolationLevel()
.
isEnabled
public boolean isEnabled()
- Description copied from interface:
TransactionProvider
- Returns
true
if this transaction provider is enabled or not.
- Specified by:
isEnabled
in interface TransactionProvider
Copyright © GigaSpaces.