public interface TransactionProvider extends SpaceTransactionProvider
GigaSpace implementation to declaratively provide on going
transactions to JavaSpace APIs.
The transaction provider usually interacts with a transaction manager (for example, Spring's
PlatformTransactionManager) in order to get the current
running transactions. It allows a transactional context to be passed to the current transaction
method, though it doesn't have to be used.
| Modifier and Type | Method and Description |
|---|---|
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). |
getCurrentTransaction, getCurrentTransactionIsolationLevel, isEnabledTransaction.Created getCurrentTransaction(Object transactionalContext, IJSpace space)
If no transaction is currently executing, null value will be returned. This
usually means that the operation will be performed without a transaction.
transactionalContext - Transactional context to (optionally) fetch the transaction byspace - The actual Space this operation will be performed onIJSpace operations.
Can be null.int getCurrentTransactionIsolationLevel(Object transactionalContext)
TransactionDefinition.getIsolationLevel() values). A
transactional context can be passed and optionally used in order to fetch the current running
transaction.transactionalContext - Transactional context to (optionally) fetch the transaction byTransactionDefinition.getIsolationLevel().Copyright © GigaSpaces.