Class GammaTxnPool
java.lang.Object
org.multiverse.stms.gamma.transactions.GammaTxnPool
- All Implemented Interfaces:
MultiverseConstants, GammaConstants
A pool for pooling GammaTxns.
- Author:
- Peter Veentjer.
-
Field Summary
Fields inherited from interface GammaConstants
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_UNCOMMITTEDFields inherited from interface MultiverseConstants
LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPuts a GammaTxn in the pool.Takes a FatArrayGammaTxn from the pool.Takes a FatMonoGammaTxn from the pool.Takes a FatArrayGammaTxn from the pool.Takes a FatMonoGammaTxn from the pool.takeMap()Takes a FatArrayTreeGammaTxn from the pool.
-
Constructor Details
-
GammaTxnPool
public GammaTxnPool()
-
-
Method Details
-
takeFatMono
Takes a FatMonoGammaTxn from the pool.- Returns:
- the taken FatMonoGammaTxn or null of none available.
-
takeFatFixedLength
Takes a FatArrayGammaTxn from the pool.- Returns:
- the taken FatArrayGammaTxn or null of none available.
-
takeLeanMono
Takes a FatMonoGammaTxn from the pool.- Returns:
- the taken FatMonoGammaTxn or null of none available.
-
takeLeanFixedLength
Takes a FatArrayGammaTxn from the pool.- Returns:
- the taken FatArrayGammaTxn or null of none available.
-
takeMap
Takes a FatArrayTreeGammaTxn from the pool.- Returns:
- the taken FatArrayTreeGammaTxn or null of none available.
-
put
Puts a GammaTxn in the pool.- Parameters:
tx- the GammaTxn to put in the pool.- Throws:
NullPointerException- if tx is null.
-