private static final class GammaStm.SpeculativeGammaTxnFactory extends java.lang.Object implements GammaTxnFactory
| Modifier and Type | Field and Description |
|---|---|
private GammaTxnFactoryBuilder |
builder |
private GammaTxnConfig |
config |
| Constructor and Description |
|---|
SpeculativeGammaTxnFactory(GammaTxnConfig config,
GammaTxnFactoryBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
GammaTxnConfig |
getConfig()
Gets the
TxnConfig used by this TxnFactory. |
GammaTxnFactoryBuilder |
getTxnFactoryBuilder() |
GammaTxn |
newTransaction(GammaTxnPool pool) |
GammaTxn |
newTxn()
Creates a new
Txn. |
GammaTxn |
upgradeAfterSpeculativeFailure(GammaTxn failingTx,
GammaTxnPool pool) |
private final GammaTxnConfig config
private final GammaTxnFactoryBuilder builder
SpeculativeGammaTxnFactory(GammaTxnConfig config, GammaTxnFactoryBuilder builder)
public GammaTxnFactoryBuilder 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 upgradeAfterSpeculativeFailure(GammaTxn failingTx, GammaTxnPool pool)
upgradeAfterSpeculativeFailure in interface GammaTxnFactorypublic final GammaTxn newTransaction(GammaTxnPool pool)
newTransaction in interface GammaTxnFactory