public class MuleXATransactionProvider extends Object implements TransactionProvider
Constructor and Description |
---|
MuleXATransactionProvider() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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 TransactionProvider
transactionalContext
- 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)
TransactionProvider
TransactionDefinition.getIsolationLevel()
values). A
transactional context can be passed and optionally used in order to fetch the current running
transaction.getCurrentTransactionIsolationLevel
in interface TransactionProvider
transactionalContext
- Transactional context to (optionally) fetch the transaction byTransactionDefinition.getIsolationLevel()
.public boolean isEnabled()
TransactionProvider
true
if this transaction provider is enabled or not.isEnabled
in interface TransactionProvider
public void destroy() throws RemoteException
RemoteException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © GigaSpaces.