Modifier and Type | Field and Description |
---|---|
BackoffPolicy |
defaultBackoffPolicy |
GammaTxnConfig |
defaultConfig |
int |
defaultMaxRetries |
GammaOrElseBlock |
defaultOrElseBlock |
org.multiverse.stms.gamma.GammaStm.GammaTxnRefFactoryImpl |
defaultRefFactory |
NaiveTxnCollectionFactory |
defaultTransactionalCollectionFactory |
GammaTxnExecutor |
defaultxnExecutor |
GlobalConflictCounter |
globalConflictCounter |
int |
readBiasedThreshold |
GammaTxnRefFactoryBuilder |
refFactoryBuilder |
int |
spinCount |
Constructor and Description |
---|
GammaStm() |
GammaStm(GammaStmConfig config) |
Modifier and Type | Method and Description |
---|---|
static GammaStm |
createFast()
Creates a GammaStm implementation optimized for speed.
|
GammaTxnRefFactory |
getDefaultRefFactory()
Returns the default
TxnRefFactory that can be used for easy and cheap access to a reference factory
instead of setting one up through the TxnRefFactoryBuilder . |
TxnCollectionsFactory |
getDefaultTxnCollectionFactory()
Gets the default
TxnCollectionsFactory . |
GammaTxnExecutor |
getDefaultTxnExecutor()
Returns the default
TxnExecutor that is useful for testing/experimentation purposes. |
GlobalConflictCounter |
getGlobalConflictCounter() |
GammaTxnRefFactoryBuilder |
getTxRefFactoryBuilder()
Gets the
TxnRefFactoryBuilder . |
GammaTxn |
newDefaultTxn()
Starts a default Txn that is useful for testing/experimentation purposes.
|
GammaOrElseBlock |
newOrElseBlock()
Creates an OrElseBlock.
|
GammaTxnFactoryBuilder |
newTxnFactoryBuilder()
Gets the
TxnFactoryBuilder that needs to be used to execute a Txn created by this Stm. |
public final int defaultMaxRetries
public final int spinCount
public final BackoffPolicy defaultBackoffPolicy
public final GlobalConflictCounter globalConflictCounter
public final org.multiverse.stms.gamma.GammaStm.GammaTxnRefFactoryImpl defaultRefFactory
public final GammaTxnRefFactoryBuilder refFactoryBuilder
public final GammaTxnExecutor defaultxnExecutor
public final GammaTxnConfig defaultConfig
public final NaiveTxnCollectionFactory defaultTransactionalCollectionFactory
public final int readBiasedThreshold
public final GammaOrElseBlock defaultOrElseBlock
public GammaStm()
public GammaStm(GammaStmConfig config)
public static GammaStm createFast()
GlobalStmInstance
.public final GammaTxn newDefaultTxn()
Stm
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.
newDefaultTxn
in interface Stm
public final GammaTxnExecutor getDefaultTxnExecutor()
Stm
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.
getDefaultTxnExecutor
in interface Stm
public final GammaOrElseBlock newOrElseBlock()
Stm
newOrElseBlock
in interface Stm
public final GlobalConflictCounter getGlobalConflictCounter()
public final GammaTxnRefFactory getDefaultRefFactory()
Stm
TxnRefFactory
that can be used for easy and cheap access to a reference factory
instead of setting one up through the TxnRefFactoryBuilder
.getDefaultRefFactory
in interface Stm
public final GammaTxnFactoryBuilder newTxnFactoryBuilder()
Stm
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.newTxnFactoryBuilder
in interface Stm
public final TxnCollectionsFactory getDefaultTxnCollectionFactory()
Stm
TxnCollectionsFactory
.getDefaultTxnCollectionFactory
in interface Stm
TxnCollectionsFactory
.public final GammaTxnRefFactoryBuilder getTxRefFactoryBuilder()
Stm
TxnRefFactoryBuilder
.getTxRefFactoryBuilder
in interface Stm
Copyright © 2020. All rights reserved.