|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionProvider
A transaction provider is used to support declarative transactions. It is usually used with a
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.
Method Summary | |
---|---|
net.jini.core.transaction.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. |
Method Detail |
---|
net.jini.core.transaction.Transaction.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 transcation byspace
- The actual Space this operation will be perfomed on
IJSpace
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 transcation by
TransactionDefinition.getIsolationLevel()
.boolean isEnabled()
true
if this transaction provider is enabled or not.
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |