Package org.multiverse.api
-
Interface Summary Interface Description BackoffPolicy A policy to be used whenTxn
or an atomic operation can't make any progress, e.g.Lock The Lock provides access to pessimistic behavior of aTxnObject
.OrElseBlock The OrElse is responsible for executing the either block, or in case of a retry, the orelse block is executed.Stm The main interface for software transactional memory.Txn The unit of work forStm
.TxnConfig Contains the transaction configuration used by aTxn
.TxnExecutor An TxnExecutor is responsible for executing an atomic callable.TxnFactory A Factory responsible for creating aTxn
.TxnFactoryBuilder A Builder for creating aTxnFactory
andTxnExecutor
.TxnObject The interface each transactional object needs to implement. -
Class Summary Class Description DefaultBackoffPolicy ABackoffPolicy
that does an 'exponential' backoff.GlobalStmInstance A singleton that can be used for easy access to theStm
that is used globally.StmUtils TxnThreadLocal AThreadLocal
that contains the currentTxn
.TxnThreadLocal.Container -
Enum Summary Enum Description IsolationLevel With the IsolationLevel you have a way to provide declarative control to guarantee isolation between transactions.LockMode Using the LockMode one can control the pessimistic nature of aTxn
.PropagationLevel With the PropagationLevel you have control on how theTxnExecutor
reacts on the existence or the non existence of aTxn
.TraceLevel Using the TraceLevel you get some feedback on what is happening inside a transaction.TxnStatus An enumeration of all possible states aTxn
can have.