GigaSpaces XAP 7.1 API

org.openspaces.esb.mule.transaction
Class MuleXATransactionProvider

java.lang.Object
  extended by org.openspaces.esb.mule.transaction.MuleXATransactionProvider
All Implemented Interfaces:
TransactionProvider

public class MuleXATransactionProvider
extends Object
implements TransactionProvider

Author:
kimchy (Shay Banon)

Constructor Summary
MuleXATransactionProvider()
           
 
Method Summary
 net.jini.core.transaction.Transaction.Created getCurrentTransaction(Object transactionalContext, IJSpace space)
          Returns the currently running transaction (usually managed externally/declarative).
 int getCurrentTransactionIsolationLevel(Object transactionalContext)
          Returns the currently running transaction isolation level (mapping to Spring TransactionDefinition.getIsolationLevel() values).
 boolean isEnabled()
          Returns true if this transaction provider is enabled or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleXATransactionProvider

public MuleXATransactionProvider()
Method Detail

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 by
space - 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

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.