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 SpaceTransactionProvidernull).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 IsolationLevelModifiers getCurrentTransactionIsolationLevel()
SpaceTransactionProvidergetCurrentTransactionIsolationLevel in interface SpaceTransactionProviderpublic 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()
SpaceTransactionProvidertrue if this transaction provider is enabled or not.isEnabled in interface SpaceTransactionProviderpublic void destroy()
throws RemoteException
RemoteExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © GigaSpaces.