public interface OrElseBlock
extends org.multiverse.MultiverseConstants
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(org.multiverse.api.callables.TxnBooleanCallable either,
org.multiverse.api.callables.TxnBooleanCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
<E> E |
execute(org.multiverse.api.callables.TxnCallable<E> either,
org.multiverse.api.callables.TxnCallable<E> orelse)
Executes the either, or when it is retried, the orelse block.
|
double |
execute(org.multiverse.api.callables.TxnDoubleCallable either,
org.multiverse.api.callables.TxnDoubleCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
int |
execute(org.multiverse.api.callables.TxnIntCallable either,
org.multiverse.api.callables.TxnIntCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
long |
execute(org.multiverse.api.callables.TxnLongCallable either,
org.multiverse.api.callables.TxnLongCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
void |
execute(org.multiverse.api.callables.TxnVoidCallable either,
org.multiverse.api.callables.TxnVoidCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
boolean |
executeChecked(org.multiverse.api.callables.TxnBooleanCallable either,
org.multiverse.api.callables.TxnBooleanCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
<E> E |
executeChecked(org.multiverse.api.callables.TxnCallable<E> either,
org.multiverse.api.callables.TxnCallable<E> orelse)
Executes the either, or when it is retried, the orelse block.
|
double |
executeChecked(org.multiverse.api.callables.TxnDoubleCallable either,
org.multiverse.api.callables.TxnDoubleCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
int |
executeChecked(org.multiverse.api.callables.TxnIntCallable either,
org.multiverse.api.callables.TxnIntCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
long |
executeChecked(org.multiverse.api.callables.TxnLongCallable either,
org.multiverse.api.callables.TxnLongCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
void |
executeChecked(org.multiverse.api.callables.TxnVoidCallable either,
org.multiverse.api.callables.TxnVoidCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
<E> E execute(org.multiverse.api.callables.TxnCallable<E> either,
org.multiverse.api.callables.TxnCallable<E> orelse)
either - orelse - java.lang.NullPointerException - if either or orelse is null.org.multiverse.api.exceptions.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.org.multiverse.api.exceptions.InvisibleCheckedException - if a checked exception is thrown by the closure.<E> E executeChecked(org.multiverse.api.callables.TxnCallable<E> either,
org.multiverse.api.callables.TxnCallable<E> orelse)
throws java.lang.Exception
either - orelse - java.lang.NullPointerException - if either or orelse is null.org.multiverse.api.exceptions.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.java.lang.Exception - if the atomicChecked call fails.int execute(org.multiverse.api.callables.TxnIntCallable either,
org.multiverse.api.callables.TxnIntCallable orelse)
either - orelse - java.lang.NullPointerException - if either or orelse is null.org.multiverse.api.exceptions.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.org.multiverse.api.exceptions.InvisibleCheckedException - if a checked exception is thrown by the closure.int executeChecked(org.multiverse.api.callables.TxnIntCallable either,
org.multiverse.api.callables.TxnIntCallable orelse)
throws java.lang.Exception
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.java.lang.Exception - if the atomicChecked call fails.long execute(org.multiverse.api.callables.TxnLongCallable either,
org.multiverse.api.callables.TxnLongCallable orelse)
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.org.multiverse.api.exceptions.InvisibleCheckedException - if a checked exception is thrown by the closure.long executeChecked(org.multiverse.api.callables.TxnLongCallable either,
org.multiverse.api.callables.TxnLongCallable orelse)
throws java.lang.Exception
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.java.lang.Exception - if the atomicChecked call fails.double execute(org.multiverse.api.callables.TxnDoubleCallable either,
org.multiverse.api.callables.TxnDoubleCallable orelse)
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.org.multiverse.api.exceptions.InvisibleCheckedException - if a checked exception is thrown by the closure.double executeChecked(org.multiverse.api.callables.TxnDoubleCallable either,
org.multiverse.api.callables.TxnDoubleCallable orelse)
throws java.lang.Exception
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.java.lang.Exception - if the atomicChecked call fails.boolean execute(org.multiverse.api.callables.TxnBooleanCallable either,
org.multiverse.api.callables.TxnBooleanCallable orelse)
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.org.multiverse.api.exceptions.InvisibleCheckedException - if a checked exception is thrown by the closure.boolean executeChecked(org.multiverse.api.callables.TxnBooleanCallable either,
org.multiverse.api.callables.TxnBooleanCallable orelse)
throws java.lang.Exception
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.java.lang.Exception - if the atomicChecked call fails.void execute(org.multiverse.api.callables.TxnVoidCallable either,
org.multiverse.api.callables.TxnVoidCallable orelse)
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.org.multiverse.api.exceptions.InvisibleCheckedException - if a checked exception is thrown by the closure.void executeChecked(org.multiverse.api.callables.TxnVoidCallable either,
org.multiverse.api.callables.TxnVoidCallable orelse)
throws java.lang.Exception
either - orelse - java.lang.NullPointerException - if either or orelse is null.TxnMandatoryException - if no transaction is found on the TxnThreadLocal.java.lang.Exception - if the atomicChecked call fails.