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