public interface OrElseBlock extends MultiverseConstants
LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED
Modifier and Type | Method and Description |
---|---|
boolean |
execute(TxnBooleanCallable either,
TxnBooleanCallable orelse)
Executes the either, or when it is retried, the orelse block.
|
<E> E |
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.
|
<E> E |
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.
|
<E> E execute(TxnCallable<E> either, TxnCallable<E> orelse)
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.InvisibleCheckedException
- if a checked exception is thrown by the closure.<E> E executeChecked(TxnCallable<E> either, TxnCallable<E> orelse) throws Exception
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.Exception
- if the atomicChecked call fails.int execute(TxnIntCallable either, TxnIntCallable orelse)
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.InvisibleCheckedException
- if a checked exception is thrown by the closure.int executeChecked(TxnIntCallable either, TxnIntCallable orelse) throws Exception
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.Exception
- if the atomicChecked call fails.long execute(TxnLongCallable either, TxnLongCallable orelse)
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.InvisibleCheckedException
- if a checked exception is thrown by the closure.long executeChecked(TxnLongCallable either, TxnLongCallable orelse) throws Exception
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.Exception
- if the atomicChecked call fails.double execute(TxnDoubleCallable either, TxnDoubleCallable orelse)
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.InvisibleCheckedException
- if a checked exception is thrown by the closure.double executeChecked(TxnDoubleCallable either, TxnDoubleCallable orelse) throws Exception
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.Exception
- if the atomicChecked call fails.boolean execute(TxnBooleanCallable either, TxnBooleanCallable orelse)
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.InvisibleCheckedException
- if a checked exception is thrown by the closure.boolean executeChecked(TxnBooleanCallable either, TxnBooleanCallable orelse) throws Exception
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.Exception
- if the atomicChecked call fails.void execute(TxnVoidCallable either, TxnVoidCallable orelse)
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.InvisibleCheckedException
- if a checked exception is thrown by the closure.void executeChecked(TxnVoidCallable either, TxnVoidCallable orelse) throws Exception
either
- orelse
- NullPointerException
- if either or orelse is null.TxnMandatoryException
- if no transaction is found on the TxnThreadLocal.Exception
- if the atomicChecked call fails.Copyright © 2020. All rights reserved.