private static final class GammaStm.NonSpeculativeGammaTxnFactory extends java.lang.Object implements GammaTxnFactory
| Modifier and Type | Field and Description |
|---|---|
private GammaTxnFactoryBuilder |
builder |
private GammaTxnConfig |
config |
| Constructor and Description |
|---|
NonSpeculativeGammaTxnFactory(GammaTxnConfig config,
GammaTxnFactoryBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
GammaTxnConfig |
getConfig()
Gets the
TxnConfig used by this TxnFactory. |
TxnFactoryBuilder |
getTxnFactoryBuilder() |
GammaTxn |
newTransaction(GammaTxnPool pool) |
GammaTxn |
newTxn()
Creates a new
Txn. |
GammaTxn |
upgradeAfterSpeculativeFailure(GammaTxn tailingTx,
GammaTxnPool pool) |
private final GammaTxnConfig config
private final GammaTxnFactoryBuilder builder
NonSpeculativeGammaTxnFactory(GammaTxnConfig config, GammaTxnFactoryBuilder builder)
public TxnFactoryBuilder getTxnFactoryBuilder()
getTxnFactoryBuilder in interface TxnFactorypublic final GammaTxnConfig getConfig()
TxnFactoryTxnConfig used by this TxnFactory.getConfig in interface TxnFactorygetConfig in interface GammaTxnFactorypublic final GammaTxn newTxn()
TxnFactoryTxn.newTxn in interface TxnFactorynewTxn in interface GammaTxnFactorypublic final GammaTxn newTransaction(GammaTxnPool pool)
newTransaction in interface GammaTxnFactorypublic final GammaTxn upgradeAfterSpeculativeFailure(GammaTxn tailingTx, GammaTxnPool pool)
upgradeAfterSpeculativeFailure in interface GammaTxnFactory