Package com.gigaspaces.transaction
Interface SpaceTransactionProvider
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
TransactionProvider
- All Known Implementing Classes:
DefaultTransactionProvider
A transaction provider for space proxy.
- Since:
- 12.2
- Author:
- Niv Ingberg
-
Method Summary
Modifier and TypeMethodDescriptionReturns the currently running transaction (usually managed externally/declarative).Returns the currently running transaction isolation level.booleanReturnstrueif this transaction provider is enabled or not.
-
Method Details
-
isEnabled
boolean isEnabled()Returnstrueif this transaction provider is enabled or not. -
getCurrentTransaction
Transaction getCurrentTransaction()Returns the currently running transaction (usually managed externally/declarative).If no transaction is currently executing,
nullvalue will be returned. This usually means that the operation will be performed without a transaction.- Returns:
- The transaction object to be used (can be
null).
-
getCurrentTransactionIsolationLevel
IsolationLevelModifiers getCurrentTransactionIsolationLevel()Returns the currently running transaction isolation level.- Returns:
- The transaction isolation level.
-