Package org.multiverse.stms.gamma
Class LeanGammaTxnExecutor
java.lang.Object
org.multiverse.stms.gamma.AbstractGammaTxnExecutor
org.multiverse.stms.gamma.LeanGammaTxnExecutor
- 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, txnFactoryFields 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> Efinal booleanexecute(TxnBooleanCallable callable) Executes the transactional callable.final <E> Eexecute(TxnCallable<E> callable) Executes the transactional callable.final doubleexecute(TxnDoubleCallable callable) Executes the transactional callable.final intexecute(TxnIntCallable callable) Executes the transactional callable.final longexecute(TxnLongCallable callable) Executes the transactional callable.final voidexecute(TxnVoidCallable callable) Executes the transactional 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
-
-
Constructor Details
-
LeanGammaTxnExecutor
-
-
Method Details
-
execute
-
execute
-
executeChecked
- Throws:
Exception
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-