public class MuleXATransactionProvider extends Object implements TransactionProvider
Constructor and Description |
---|
MuleXATransactionProvider(IJSpace space) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
destroy() |
Transaction |
getCurrentTransaction()
Returns the currently running transaction (usually managed externally/declarative).
|
Transaction.Created |
getCurrentTransaction(Object transactionalContext,
IJSpace space)
Returns the currently running transaction (usually managed externally/declarative).
|
IsolationLevelModifiers |
getCurrentTransactionIsolationLevel()
Returns the currently running transaction isolation level.
|
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 MuleXATransactionProvider(IJSpace space)
public Transaction getCurrentTransaction()
SpaceTransactionProvider
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 SpaceTransactionProvider
null
).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 IsolationLevelModifiers getCurrentTransactionIsolationLevel()
SpaceTransactionProvider
getCurrentTransactionIsolationLevel
in interface SpaceTransactionProvider
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()
SpaceTransactionProvider
true
if this transaction provider is enabled or not.isEnabled
in interface SpaceTransactionProvider
public void destroy() throws RemoteException
RemoteException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © GigaSpaces.