|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.stms.gamma.GammaStm
public final class GammaStm
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GammaStm()
|
|
GammaStm(GammaStmConfig config)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public GammaStm()
public GammaStm(GammaStmConfig config)
| Method Detail |
|---|
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()
Stm
newOrElseBlock 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||