Interface TransactionalSystem
-
- All Superinterfaces:
Transactional,Transactional
- All Known Implementing Classes:
TransactionalBase
public interface TransactionalSystem extends Transactional
Implementation side of aTransactional.Transactionalpresents the application facing view whereas this has all the possible steps of an implementation. Normally, the implementation ofcommit()is split up.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidattach(TransactionCoordinatorState coordinatorState)Attach a transaction to this thread.default voidcommit()voidcommitExec()Do the 2-phase "commit" stepvoidcommitPrepare()Do the 2-phase "prepare" step after which the transaction coordinator decides whether to commit or abort.TransactionCoordinatorStatedetach()Suspend this transaction, detaching from the current thread.TransactiongetThreadTransaction()Return the transaction object for this thread.TransactionInfogetTransactionInfo()Return an information view of the transaction for this thread, if any.TransactionCoordinatorgetTxnMgr()Get the associatedTransactionCoordinator-
Methods inherited from interface org.apache.jena.sparql.core.Transactional
abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
-
-
-
-
Method Detail
-
commit
default void commit()
- Specified by:
commitin interfaceTransactional
-
commitPrepare
void commitPrepare()
Do the 2-phase "prepare" step after which the transaction coordinator decides whether to commit or abort. A TransactionalSystem must be prepared for both possibilities.
-
commitExec
void commitExec()
Do the 2-phase "commit" step
-
detach
TransactionCoordinatorState detach()
Suspend this transaction, detaching from the current thread. A new transaction on this thread can performed but the detached transaction still exists and if it is a write transaction it can still block other write transactions.
-
attach
void attach(TransactionCoordinatorState coordinatorState)
Attach a transaction to this thread. A transaction system implementation usually imposes a rule that only one thread can have a transaction attached at a time.
-
getTxnMgr
TransactionCoordinator getTxnMgr()
Get the associatedTransactionCoordinator
-
getTransactionInfo
TransactionInfo getTransactionInfo()
Return an information view of the transaction for this thread, if any. Returns null when there is no active transaction for this tread.
-
getThreadTransaction
Transaction getThreadTransaction()
Return the transaction object for this thread. Low-level use only. To get information about the current transaction, callgetTransactionInfo().
-
-