X - A type of (checked) exception that may occur while performing the operation.public interface Attempts<X extends Exception>
| Modifier and Type | Method and Description |
|---|---|
List<Throwable> |
getCaught()
Returns any exceptions that might have occurred while performing the associated operation.
|
void |
reThrowCaught()
Re-throws one of the exceptions that may have occurred while executing the associated operation.
|
static <X extends Exception> |
runParallel(int count,
XConsumer<Integer,X> xConsumer)
Repeatedly performs a specific operation in parallel threads.
|
static <X extends Exception> |
runParallel(int count,
XRunnable<X> xRunnable)
Repeatedly performs a specific operation in parallel threads.
|
static <X extends Exception> |
runSerial(int count,
XConsumer<Integer,X> xConsumer)
Repeatedly performs a specific operation in the current thread.
|
static <X extends Exception> |
runSerial(int count,
XRunnable<X> xRunnable)
Repeatedly performs a specific operation in the current thread.
|
static <X extends Exception> |
tryParallel(int count,
XConsumer<Integer,X> xConsumer)
Repeatedly performs a specific operation in parallel threads.
|
static <X extends Exception> |
tryParallel(int count,
XRunnable<X> xRunnable)
Repeatedly performs a specific operation in parallel threads.
|
static <X extends Exception> |
trySerial(int count,
XConsumer<Integer,X> xConsumer)
Repeatedly performs a specific operation in the current thread.
|
static <X extends Exception> |
trySerial(int count,
XRunnable<X> xRunnable)
Repeatedly performs a specific operation in the current thread.
|
static <X extends Exception> void tryParallel(int count, XRunnable<X> xRunnable) throws X extends Exception
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxRunnable - the operationError - if an Error occurred while performing the operation.RuntimeException - if a RuntimeException occurred while performing the operation.X - if an Exception of type <X> occurred while performing the operation.X extends ExceptiontrySerial(int, XRunnable),
tryParallel(int, XConsumer),
runParallel(int, XRunnable)static <X extends Exception> void tryParallel(int count, XConsumer<Integer,X> xConsumer) throws X extends Exception
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxConsumer - the operationError - if an Error occurred while performing the operation.RuntimeException - if a RuntimeException occurred while performing the operation.X - if an Exception of type <X> occurred while performing the operation.X extends ExceptiontrySerial(int, XConsumer),
tryParallel(int, XRunnable),
runParallel(int, XConsumer)static <X extends Exception> Attempts<X> runParallel(int count, XRunnable<X> xRunnable)
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxRunnable - the operationAttempts.
This contains the exceptions that actually occurred during the execution of the operation.runSerial(int, XRunnable),
runParallel(int, XConsumer),
tryParallel(int, XRunnable)static <X extends Exception> Attempts<X> runParallel(int count, XConsumer<Integer,X> xConsumer)
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxConsumer - the operationAttempts.
This contains the exceptions that actually occurred during the execution of the operation.runSerial(int, XConsumer),
runParallel(int, XRunnable),
tryParallel(int, XConsumer)static <X extends Exception> void trySerial(int count, XRunnable<X> xRunnable) throws X extends Exception
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxRunnable - the operationError - if an Error occurred while performing the operation.RuntimeException - if a RuntimeException occurred while performing the operation.X - if an Exception of type <X> occurred while performing the operation.X extends ExceptiontryParallel(int, XRunnable),
trySerial(int, XConsumer),
runSerial(int, XRunnable)static <X extends Exception> void trySerial(int count, XConsumer<Integer,X> xConsumer) throws X extends Exception
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxConsumer - the operationError - if an Error occurred while performing the operation.RuntimeException - if a RuntimeException occurred while performing the operation.X - if an Exception of type <X> occurred while performing the operation.X extends ExceptiontryParallel(int, XRunnable),
trySerial(int, XRunnable),
runSerial(int, XConsumer)static <X extends Exception> Attempts<X> runSerial(int count, XRunnable<X> xRunnable)
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxRunnable - the operationAttempts.
This contains the exceptions that actually occurred during the execution of the operation.runParallel(int, XRunnable),
runSerial(int, XConsumer),
trySerial(int, XRunnable)static <X extends Exception> Attempts<X> runSerial(int count, XConsumer<Integer,X> xConsumer)
X - A type of (checked) exception that may occur while performing the operation.count - the number of parallel threadsxConsumer - the operationAttempts.
This contains the exceptions that actually occurred during the execution of the operation.runParallel(int, XConsumer),
runSerial(int, XRunnable),
trySerial(int, XConsumer)void reThrowCaught()
throws X extends Exception
Error - if an Error occurred while performing the operation.RuntimeException - if a RuntimeException occurred while performing the operation.X - if an Exception of type <X> occurred while performing the operation.X extends ExceptionCopyright © 2020. All rights reserved.