public final class GammaTxnPool extends java.lang.Object implements GammaConstants
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private static boolean |
ENABLED |
private FatFixedLengthGammaTxn[] |
poolFatFixedLength |
private int |
poolFatFixedLengthIndex |
private FatMonoGammaTxn[] |
poolFatMono |
private int |
poolFatMonoIndex |
private FatVariableLengthGammaTxn[] |
poolFatVariableLength |
private int |
poolFatVariableLengthIndex |
private LeanFixedLengthGammaTxn[] |
poolLeanFixedLength |
private int |
poolLeanFixedLengthIndex |
private LeanMonoGammaTxn[] |
poolLeanMono |
private int |
poolLeanMonoIndex |
FAILURE, MASK_CONFLICT, MASK_SUCCESS, MASK_UNREGISTERED, REGISTRATION_DONE, REGISTRATION_NONE, REGISTRATION_NOT_NEEDED, TRANLOCAL_COMMUTING, TRANLOCAL_CONSTRUCTING, TRANLOCAL_READ, TRANLOCAL_WRITE, TRANSACTIONTYPE_FAT_FIXED_LENGTH, TRANSACTIONTYPE_FAT_MONO, TRANSACTIONTYPE_FAT_VARIABLE_LENGTH, TRANSACTIONTYPE_LEAN_FIXED_LENGTH, TRANSACTIONTYPE_LEAN_MONO, TX_ABORTED, TX_ACTIVE, TX_COMMITTED, TX_PREPARED, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_INT, TYPE_LONG, TYPE_REF, VERSION_UNCOMMITTED
LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED
Constructor and Description |
---|
GammaTxnPool() |
Modifier and Type | Method and Description |
---|---|
void |
put(GammaTxn tx)
Puts a GammaTxn in the pool.
|
FatFixedLengthGammaTxn |
takeFatFixedLength()
Takes a FatArrayGammaTxn from the pool.
|
FatMonoGammaTxn |
takeFatMono()
Takes a FatMonoGammaTxn from the pool.
|
LeanFixedLengthGammaTxn |
takeLeanFixedLength()
Takes a FatArrayGammaTxn from the pool.
|
LeanMonoGammaTxn |
takeLeanMono()
Takes a FatMonoGammaTxn from the pool.
|
FatVariableLengthGammaTxn |
takeMap()
Takes a FatArrayTreeGammaTxn from the pool.
|
private static final boolean ENABLED
private final boolean enabled
private final FatMonoGammaTxn[] poolFatMono
private int poolFatMonoIndex
private final FatFixedLengthGammaTxn[] poolFatFixedLength
private int poolFatFixedLengthIndex
private final LeanMonoGammaTxn[] poolLeanMono
private int poolLeanMonoIndex
private final LeanFixedLengthGammaTxn[] poolLeanFixedLength
private int poolLeanFixedLengthIndex
private final FatVariableLengthGammaTxn[] poolFatVariableLength
private int poolFatVariableLengthIndex
public FatMonoGammaTxn takeFatMono()
public FatFixedLengthGammaTxn takeFatFixedLength()
public LeanMonoGammaTxn takeLeanMono()
public LeanFixedLengthGammaTxn takeLeanFixedLength()
public FatVariableLengthGammaTxn takeMap()
public void put(GammaTxn tx)
tx
- the GammaTxn to put in the pool.java.lang.NullPointerException
- if tx is null.