public final class LeanGammaTxnExecutor extends AbstractGammaTxnExecutor
TxnExecutor made for the GammaStm.
This code is generated.backoffPolicy, txnConfig, txnFactoryLOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED| Constructor and Description |
|---|
LeanGammaTxnExecutor(GammaTxnFactory txnFactory) |
| Modifier and Type | Method and Description |
|---|---|
<E> E |
execute(java.util.concurrent.Callable<E> callable) |
void |
execute(java.lang.Runnable runnable) |
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.
|
<E> E |
executeChecked(java.util.concurrent.Callable<E> callable) |
boolean |
executeChecked(TxnBooleanCallable callable)
Executes the callable.
|
<E> E |
executeChecked(TxnCallable<E> callable)
Executes the callable.
|
double |
executeChecked(TxnDoubleCallable callable)
Executes the callable.
|
int |
executeChecked(TxnIntCallable callable)
Executes the callable.
|
long |
executeChecked(TxnLongCallable callable)
Executes the callable.
|
void |
executeChecked(TxnVoidCallable callable)
Executes the callable.
|
GammaTxnFactory |
getTxnFactory()
Returns the
TxnFactory that is used by this TxnExecutor to create transactions used to execute
transactional closures. |
public LeanGammaTxnExecutor(GammaTxnFactory txnFactory)
public void execute(java.lang.Runnable runnable)
public <E> E execute(java.util.concurrent.Callable<E> callable)
public <E> E executeChecked(java.util.concurrent.Callable<E> callable)
throws java.lang.Exception
java.lang.Exceptionpublic GammaTxnFactory getTxnFactory()
TxnExecutorTxnFactory that is used by this TxnExecutor to create transactions used to execute
transactional closures.public final <E> E executeChecked(TxnCallable<E> callable) throws java.lang.Exception
TxnExecutorcallable - the callable to execute.java.lang.NullPointerException - if callable is null.java.lang.Exception - if the execute call fails.public final <E> E execute(TxnCallable<E> callable)
TxnExecutorcallable - the callable to execute.public final int executeChecked(TxnIntCallable callable) throws java.lang.Exception
TxnExecutorcallable - the callable to execute.java.lang.NullPointerException - if callable is null.java.lang.Exception - if the execute call fails.public final int execute(TxnIntCallable callable)
TxnExecutorcallable - the callable to execute.public final long executeChecked(TxnLongCallable callable) throws java.lang.Exception
TxnExecutorcallable - the callable to execute.java.lang.NullPointerException - if callable is null.java.lang.Exception - if the execute call fails.public final long execute(TxnLongCallable callable)
TxnExecutorcallable - the callable to execute.public final double executeChecked(TxnDoubleCallable callable) throws java.lang.Exception
TxnExecutorcallable - the callable to execute.java.lang.NullPointerException - if callable is null.java.lang.Exception - if the execute call fails.public final double execute(TxnDoubleCallable callable)
TxnExecutorcallable - the callable to execute.public final boolean executeChecked(TxnBooleanCallable callable) throws java.lang.Exception
TxnExecutorcallable - the callable to execute.java.lang.NullPointerException - if callable is null.java.lang.Exception - if the execute call fails.public final boolean execute(TxnBooleanCallable callable)
TxnExecutorcallable - the callable to execute.public final void executeChecked(TxnVoidCallable callable) throws java.lang.Exception
TxnExecutorcallable - the callable to execute.java.lang.NullPointerException - if callable is null.java.lang.Exception - if the execute call fails.public final void execute(TxnVoidCallable callable)
TxnExecutorcallable - the callable to execute.