public final class FatGammaTxnExecutor extends AbstractGammaTxnExecutor
TxnExecutor
made for the GammaStm.
This code is generated.Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
logger |
private PropagationLevel |
propagationLevel |
backoffPolicy, txnConfig, txnFactory
LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED
Constructor and Description |
---|
FatGammaTxnExecutor(GammaTxnFactory txnFactory) |
Modifier and Type | Method and Description |
---|---|
<E> E |
execute(java.util.concurrent.Callable<E> 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) |
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. |
private static final java.util.logging.Logger logger
private final PropagationLevel propagationLevel
public FatGammaTxnExecutor(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.Exception
public GammaTxnFactory getTxnFactory()
TxnExecutor
TxnFactory
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
TxnExecutor
callable
- the callable to execute.java.lang.NullPointerException
- if callable is null.java.lang.Exception
- if the execute call fails.public <E> E execute(TxnCallable<E> callable)
TxnExecutor
callable
- the callable to execute.private <E> E execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnCallable<E> callable) throws java.lang.Exception
java.lang.Exception
public final int executeChecked(TxnIntCallable callable) throws java.lang.Exception
TxnExecutor
callable
- the callable to execute.java.lang.NullPointerException
- if callable is null.java.lang.Exception
- if the execute call fails.public int execute(TxnIntCallable callable)
TxnExecutor
callable
- the callable to execute.private int execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnIntCallable callable) throws java.lang.Exception
java.lang.Exception
public final long executeChecked(TxnLongCallable callable) throws java.lang.Exception
TxnExecutor
callable
- the callable to execute.java.lang.NullPointerException
- if callable is null.java.lang.Exception
- if the execute call fails.public long execute(TxnLongCallable callable)
TxnExecutor
callable
- the callable to execute.private long execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnLongCallable callable) throws java.lang.Exception
java.lang.Exception
public final double executeChecked(TxnDoubleCallable callable) throws java.lang.Exception
TxnExecutor
callable
- the callable to execute.java.lang.NullPointerException
- if callable is null.java.lang.Exception
- if the execute call fails.public double execute(TxnDoubleCallable callable)
TxnExecutor
callable
- the callable to execute.private double execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnDoubleCallable callable) throws java.lang.Exception
java.lang.Exception
public final boolean executeChecked(TxnBooleanCallable callable) throws java.lang.Exception
TxnExecutor
callable
- the callable to execute.java.lang.NullPointerException
- if callable is null.java.lang.Exception
- if the execute call fails.public boolean execute(TxnBooleanCallable callable)
TxnExecutor
callable
- the callable to execute.private boolean execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnBooleanCallable callable) throws java.lang.Exception
java.lang.Exception
public final void executeChecked(TxnVoidCallable callable) throws java.lang.Exception
TxnExecutor
callable
- the callable to execute.java.lang.NullPointerException
- if callable is null.java.lang.Exception
- if the execute call fails.public void execute(TxnVoidCallable callable)
TxnExecutor
callable
- the callable to execute.private void execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnVoidCallable callable) throws java.lang.Exception
java.lang.Exception