| 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()
StmStm.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 Stmpublic final GammaTxnExecutor getDefaultTxnExecutor()
StmTxnExecutor 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 Stmpublic final GammaOrElseBlock newOrElseBlock()
StmnewOrElseBlock in interface Stmpublic final GlobalConflictCounter getGlobalConflictCounter()
public final GammaTxnRefFactory getDefaultRefFactory()
StmTxnRefFactory that can be used for easy and cheap access to a reference factory
instead of setting one up through the TxnRefFactoryBuilder.getDefaultRefFactory in interface Stmpublic final GammaTxnFactoryBuilder newTxnFactoryBuilder()
StmTxnFactoryBuilder 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 Stmpublic final TxnCollectionsFactory getDefaultTxnCollectionFactory()
StmTxnCollectionsFactory.getDefaultTxnCollectionFactory in interface StmTxnCollectionsFactory.public final GammaTxnRefFactoryBuilder getTxRefFactoryBuilder()
StmTxnRefFactoryBuilder.getTxRefFactoryBuilder in interface Stm