public class MuleXATransactionProvider extends Object implements TransactionProvider
| Constructor and Description |
|---|
MuleXATransactionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
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. |
public Transaction.Created getCurrentTransaction(Object transactionalContext, IJSpace space)
TransactionProvider If no transaction is currently executing, null value will be returned. This
usually means that the operation will be performed without a transaction.
getCurrentTransaction in interface TransactionProvidertransactionalContext - Transactional context to (optionally) fetch the transaction byspace - The actual Space this operation will be performed onIJSpace operations.
Can be null.public int getCurrentTransactionIsolationLevel(Object transactionalContext)
TransactionProviderTransactionDefinition.getIsolationLevel() values). A
transactional context can be passed and optionally used in order to fetch the current running
transaction.getCurrentTransactionIsolationLevel in interface TransactionProvidertransactionalContext - Transactional context to (optionally) fetch the transaction byTransactionDefinition.getIsolationLevel().public boolean isEnabled()
TransactionProvidertrue if this transaction provider is enabled or not.isEnabled in interface TransactionProviderpublic void destroy()
throws RemoteException
RemoteExceptionCopyright © GigaSpaces.