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 TxnFactory
public final GammaTxnConfig getConfig()
TxnFactory
TxnConfig
used by this TxnFactory.getConfig
in interface TxnFactory
getConfig
in interface GammaTxnFactory
public final GammaTxn newTxn()
TxnFactory
Txn
.newTxn
in interface TxnFactory
newTxn
in interface GammaTxnFactory
public final GammaTxn newTransaction(GammaTxnPool pool)
newTransaction
in interface GammaTxnFactory
public final GammaTxn upgradeAfterSpeculativeFailure(GammaTxn tailingTx, GammaTxnPool pool)
upgradeAfterSpeculativeFailure
in interface GammaTxnFactory