Class FatGammaTxnExecutor
java.lang.Object
org.multiverse.stms.gamma.AbstractGammaTxnExecutor
org.multiverse.stms.gamma.FatGammaTxnExecutor
- All Implemented Interfaces:
TxnExecutor, MultiverseConstants, GammaTxnExecutor
The
TxnExecutor made for the GammaStm.
This code is generated.-
Field Summary
FieldsFields inherited from class AbstractGammaTxnExecutor
backoffPolicy, txnConfig, txnFactoryFields 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 TypeMethodDescriptionvoid<E> Ebooleanexecute(TxnBooleanCallable callable) Executes the transactional callable.<E> Eexecute(TxnCallable<E> callable) Executes the transactional callable.doubleexecute(TxnDoubleCallable callable) Executes the transactional callable.intexecute(TxnIntCallable callable) Executes the transactional callable.longexecute(TxnLongCallable callable) Executes the transactional callable.voidexecute(TxnVoidCallable callable) Executes the transactional callable.private booleanexecute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnBooleanCallable callable) private <E> Eexecute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnCallable<E> callable) private doubleexecute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnDoubleCallable callable) private intexecute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnIntCallable callable) private longexecute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnLongCallable callable) private voidexecute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnVoidCallable callable) <E> EexecuteChecked(Callable<E> callable) final booleanexecuteChecked(TxnBooleanCallable callable) Executes the callable.final <E> EexecuteChecked(TxnCallable<E> callable) Executes the callable.final doubleexecuteChecked(TxnDoubleCallable callable) Executes the callable.final intexecuteChecked(TxnIntCallable callable) Executes the callable.final longexecuteChecked(TxnLongCallable callable) Executes the callable.final voidexecuteChecked(TxnVoidCallable callable) Executes the callable.Returns theTxnFactorythat is used by this TxnExecutor to create transactions used to execute transactional closures.
-
Field Details
-
logger
-
propagationLevel
-
-
Constructor Details
-
FatGammaTxnExecutor
-
-
Method Details
-
execute
-
execute
-
executeChecked
-
getTxnFactory
Description copied from interface:TxnExecutorReturns theTxnFactorythat is used by this TxnExecutor to create transactions used to execute transactional closures.- Returns:
- the TxnFactory used by this TxnExecutor.
-
executeChecked
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
Exception- if the execute call fails.
-
execute
Description copied from interface:TxnExecutorExecutes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
-
execute
private <E> E execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnCallable<E> callable) throws Exception - Throws:
Exception
-
executeChecked
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
Exception- if the execute call fails.
-
execute
Description copied from interface:TxnExecutorExecutes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
-
execute
private int execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnIntCallable callable) throws Exception - Throws:
Exception
-
executeChecked
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
Exception- if the execute call fails.
-
execute
Description copied from interface:TxnExecutorExecutes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
-
execute
private long execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnLongCallable callable) throws Exception - Throws:
Exception
-
executeChecked
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
Exception- if the execute call fails.
-
execute
Description copied from interface:TxnExecutorExecutes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
-
execute
private double execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnDoubleCallable callable) throws Exception - Throws:
Exception
-
executeChecked
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
Exception- if the execute call fails.
-
execute
Description copied from interface:TxnExecutorExecutes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
-
execute
private boolean execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnBooleanCallable callable) throws Exception - Throws:
Exception
-
executeChecked
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Throws:
Exception- if the execute call fails.
-
execute
Description copied from interface:TxnExecutorExecutes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.- Parameters:
callable- the callable to execute.
-
execute
private void execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnVoidCallable callable) throws Exception - Throws:
Exception
-