|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.stms.gamma.GammaOrElseBlock
public class GammaOrElseBlock
| Field Summary |
|---|
| Fields inherited from interface org.multiverse.MultiverseConstants |
|---|
LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED |
| Constructor Summary | |
|---|---|
GammaOrElseBlock()
|
|
| Method Summary | ||
|---|---|---|
boolean |
execute(TxnBooleanCallable either,
TxnBooleanCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
|
execute(TxnCallable<E> either,
TxnCallable<E> orelse)
Executes the either, or when it is retried, the orelse block. |
|
double |
execute(TxnDoubleCallable either,
TxnDoubleCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
int |
execute(TxnIntCallable either,
TxnIntCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
long |
execute(TxnLongCallable either,
TxnLongCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
void |
execute(TxnVoidCallable either,
TxnVoidCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
boolean |
executeChecked(TxnBooleanCallable either,
TxnBooleanCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
|
executeChecked(TxnCallable<E> either,
TxnCallable<E> orelse)
Executes the either, or when it is retried, the orelse block. |
|
double |
executeChecked(TxnDoubleCallable either,
TxnDoubleCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
int |
executeChecked(TxnIntCallable either,
TxnIntCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
long |
executeChecked(TxnLongCallable either,
TxnLongCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
void |
executeChecked(TxnVoidCallable either,
TxnVoidCallable orelse)
Executes the either, or when it is retried, the orelse block. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GammaOrElseBlock()
| Method Detail |
|---|
public <E> E execute(TxnCallable<E> either,
TxnCallable<E> orelse)
OrElseBlock
execute in interface OrElseBlock
public <E> E executeChecked(TxnCallable<E> either,
TxnCallable<E> orelse)
throws Exception
OrElseBlock
executeChecked in interface OrElseBlockNullPointerException - if either or orelse is null.
TxnMandatoryException - if no transaction is found on the TxnThreadLocal.
Exception - if the atomicChecked call fails.
public int execute(TxnIntCallable either,
TxnIntCallable orelse)
OrElseBlock
execute in interface OrElseBlock
public int executeChecked(TxnIntCallable either,
TxnIntCallable orelse)
throws Exception
OrElseBlock
executeChecked in interface OrElseBlockNullPointerException - if either or orelse is null.
Exception - if the atomicChecked call fails.
public long execute(TxnLongCallable either,
TxnLongCallable orelse)
OrElseBlock
execute in interface OrElseBlock
public long executeChecked(TxnLongCallable either,
TxnLongCallable orelse)
throws Exception
OrElseBlock
executeChecked in interface OrElseBlockNullPointerException - if either or orelse is null.
Exception - if the atomicChecked call fails.
public double execute(TxnDoubleCallable either,
TxnDoubleCallable orelse)
OrElseBlock
execute in interface OrElseBlock
public double executeChecked(TxnDoubleCallable either,
TxnDoubleCallable orelse)
throws Exception
OrElseBlock
executeChecked in interface OrElseBlockNullPointerException - if either or orelse is null.
Exception - if the atomicChecked call fails.
public boolean execute(TxnBooleanCallable either,
TxnBooleanCallable orelse)
OrElseBlock
execute in interface OrElseBlock
public boolean executeChecked(TxnBooleanCallable either,
TxnBooleanCallable orelse)
throws Exception
OrElseBlock
executeChecked in interface OrElseBlockNullPointerException - if either or orelse is null.
Exception - if the atomicChecked call fails.
public void execute(TxnVoidCallable either,
TxnVoidCallable orelse)
OrElseBlock
execute in interface OrElseBlock
public void executeChecked(TxnVoidCallable either,
TxnVoidCallable orelse)
throws Exception
OrElseBlock
executeChecked in interface OrElseBlockNullPointerException - if either or orelse is null.
Exception - if the atomicChecked call fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||