Package org.multiverse.stms.gamma
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 org.multiverse.stms.gamma.AbstractGammaTxnExecutor
backoffPolicy, txnConfig, txnFactory
Fields inherited from interface org.multiverse.MultiverseConstants
LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
<E> E
boolean
execute
(TxnBooleanCallable callable) Executes the transactional callable.<E> E
execute
(TxnCallable<E> callable) Executes the transactional callable.double
execute
(TxnDoubleCallable callable) Executes the transactional callable.int
execute
(TxnIntCallable callable) Executes the transactional callable.long
execute
(TxnLongCallable callable) Executes the transactional callable.void
execute
(TxnVoidCallable callable) Executes the transactional callable.private boolean
execute
(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnBooleanCallable callable) private <E> E
execute
(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnCallable<E> callable) private double
execute
(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnDoubleCallable callable) private int
execute
(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnIntCallable callable) private long
execute
(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnLongCallable callable) private void
execute
(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnVoidCallable callable) <E> E
executeChecked
(Callable<E> callable) final boolean
executeChecked
(TxnBooleanCallable callable) Executes the callable.final <E> E
executeChecked
(TxnCallable<E> callable) Executes the callable.final double
executeChecked
(TxnDoubleCallable callable) Executes the callable.final int
executeChecked
(TxnIntCallable callable) Executes the callable.final long
executeChecked
(TxnLongCallable callable) Executes the callable.final void
executeChecked
(TxnVoidCallable callable) Executes the callable.Returns theTxnFactory
that 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
- Throws:
Exception
-
getTxnFactory
Description copied from interface:TxnExecutor
Returns theTxnFactory
that 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes 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:TxnExecutor
Executes the callable.- Parameters:
callable
- the callable to execute.- Throws:
Exception
- if the execute call fails.
-
execute
Description copied from interface:TxnExecutor
Executes 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
-