Class GammaStm

  • All Implemented Interfaces:
    Stm

    public final class GammaStm
    extends Object
    implements Stm
    • Field Detail

      • defaultMaxRetries

        public final int defaultMaxRetries
      • spinCount

        public final int spinCount
      • defaultBackoffPolicy

        public final BackoffPolicy defaultBackoffPolicy
      • defaultRefFactory

        public final org.multiverse.stms.gamma.GammaStm.GammaTxnRefFactoryImpl defaultRefFactory
      • readBiasedThreshold

        public final int readBiasedThreshold
    • Constructor Detail

      • GammaStm

        public GammaStm()
    • Method Detail

      • createFast

        public static GammaStm createFast()
        Creates a GammaStm implementation optimized for speed. This method probably will be invoked by the GlobalStmInstance.
        Returns:
        the created GammaStm.
      • newDefaultTxn

        public final GammaTxn newDefaultTxn()
        Description copied from interface: Stm
        Starts a default Txn that is useful for testing/experimentation purposes. This method is purely for easy to use access, but doesn't provide any configuration options. See the Stm.newTxnFactoryBuilder() for something more configurable. In mose cases this is not the method you want to use to manage transactions.

        Transactions returned by this method are not speculative.

        Specified by:
        newDefaultTxn in interface Stm
        Returns:
        the new default Txn.
      • getDefaultTxnExecutor

        public final GammaTxnExecutor getDefaultTxnExecutor()
        Description copied from interface: Stm
        Returns the default TxnExecutor that is useful for testing/experimentation purposes. This method is purely for easy to use access, but it doesn't provide any configuration options. See the Stm.newTxnFactoryBuilder() for something more configurable.

        Transactions used in this Block are not speculative.

        Specified by:
        getDefaultTxnExecutor in interface Stm
        Returns:
        the default TxnExecutor.
      • newOrElseBlock

        public final GammaOrElseBlock newOrElseBlock()
        Description copied from interface: Stm
        Creates an OrElseBlock.
        Specified by:
        newOrElseBlock in interface Stm
        Returns:
        the created OrElseBlock.
      • newTxnFactoryBuilder

        public final GammaTxnFactoryBuilder newTxnFactoryBuilder()
        Description copied from interface: Stm
        Gets the TxnFactoryBuilder that needs to be used to execute a Txn created by this Stm. See the TxnFactoryBuilder for more info. The TxnFactoryBuilder also is responsible for creating the TxnExecutor since the Txn and TxnExecutor can be tightly coupled.
        Specified by:
        newTxnFactoryBuilder in interface Stm
        Returns:
        the TxnFactoryBuilder that is used to execute transactions on this Stm.