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
public final class FatGammaTxnExecutor extends AbstractGammaTxnExecutor
TheTxnExecutormade for the GammaStm. This code is generated.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Loggerloggerprivate PropagationLevelpropagationLevel-
Fields 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 Constructor Description FatGammaTxnExecutor(GammaTxnFactory txnFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(java.lang.Runnable runnable)<E> Eexecute(java.util.concurrent.Callable<E> callable)booleanexecute(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(java.util.concurrent.Callable<E> callable)booleanexecuteChecked(TxnBooleanCallable callable)Executes the callable.<E> EexecuteChecked(TxnCallable<E> callable)Executes the callable.doubleexecuteChecked(TxnDoubleCallable callable)Executes the callable.intexecuteChecked(TxnIntCallable callable)Executes the callable.longexecuteChecked(TxnLongCallable callable)Executes the callable.voidexecuteChecked(TxnVoidCallable callable)Executes the callable.GammaTxnFactorygetTxnFactory()Returns theTxnFactorythat is used by this TxnExecutor to create transactions used to execute transactional closures.
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
propagationLevel
private final PropagationLevel propagationLevel
-
-
Constructor Detail
-
FatGammaTxnExecutor
public FatGammaTxnExecutor(GammaTxnFactory txnFactory)
-
-
Method Detail
-
execute
public void execute(java.lang.Runnable runnable)
-
execute
public <E> E execute(java.util.concurrent.Callable<E> callable)
-
executeChecked
public <E> E executeChecked(java.util.concurrent.Callable<E> callable) throws java.lang.Exception- Throws:
java.lang.Exception
-
getTxnFactory
public GammaTxnFactory 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
public final <E> E executeChecked(TxnCallable<E> callable) throws java.lang.Exception
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
java.lang.NullPointerException- if callable is null.java.lang.Exception- if the execute call fails.
-
execute
public <E> E execute(TxnCallable<E> callable)
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 java.lang.Exception
- Throws:
java.lang.Exception
-
executeChecked
public final int executeChecked(TxnIntCallable callable) throws java.lang.Exception
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
java.lang.NullPointerException- if callable is null.java.lang.Exception- if the execute call fails.
-
execute
public int execute(TxnIntCallable callable)
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 java.lang.Exception
- Throws:
java.lang.Exception
-
executeChecked
public final long executeChecked(TxnLongCallable callable) throws java.lang.Exception
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
java.lang.NullPointerException- if callable is null.java.lang.Exception- if the execute call fails.
-
execute
public long execute(TxnLongCallable callable)
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 java.lang.Exception
- Throws:
java.lang.Exception
-
executeChecked
public final double executeChecked(TxnDoubleCallable callable) throws java.lang.Exception
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
java.lang.NullPointerException- if callable is null.java.lang.Exception- if the execute call fails.
-
execute
public double execute(TxnDoubleCallable callable)
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 java.lang.Exception
- Throws:
java.lang.Exception
-
executeChecked
public final boolean executeChecked(TxnBooleanCallable callable) throws java.lang.Exception
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Returns:
- the result of the execution.
- Throws:
java.lang.NullPointerException- if callable is null.java.lang.Exception- if the execute call fails.
-
execute
public boolean execute(TxnBooleanCallable callable)
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 java.lang.Exception
- Throws:
java.lang.Exception
-
executeChecked
public final void executeChecked(TxnVoidCallable callable) throws java.lang.Exception
Description copied from interface:TxnExecutorExecutes the callable.- Parameters:
callable- the callable to execute.- Throws:
java.lang.NullPointerException- if callable is null.java.lang.Exception- if the execute call fails.
-
execute
public void execute(TxnVoidCallable callable)
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 java.lang.Exception
- Throws:
java.lang.Exception
-
-