@Deprecated public final class Parallel<R> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R> Report<R> |
apply(int numberOfExecutions,
int numberOfThreads,
XFunction<Integer,R,?> operation)
Deprecated.
Returns a
Report after executing a particular operation multiple times in parallel. |
static <R> Report<R> |
apply(int numberOfExecutionsInSeparateThreads,
XFunction<Integer,R,?> operation)
Deprecated.
Returns a
Report after executing a particular operation multiple times in parallel. |
static Report<Void> |
invoke(int numberOfExecutions,
int numberOfThreads,
XConsumer<Integer,?> operation)
Deprecated.
Returns a
Report after executing a particular operation multiple times in parallel. |
static Report<Void> |
invoke(int numberOfExecutionsInSeparateThreads,
XConsumer<Integer,?> operation)
Deprecated.
Returns a
Report after executing a particular operation multiple times in parallel. |
public static <R> Report<R> apply(int numberOfExecutions, int numberOfThreads, XFunction<Integer,R,?> operation) throws InterruptedException
Report after executing a particular operation multiple times in parallel.R - The type of result of the operation to be performed.numberOfExecutions - The total number of times the operation should be performed.numberOfThreads - The number of parallel threads in which the operation should be performed.operation - The operation to be performed.InterruptedException - When the current thread is interrupted while waiting for the executing threads.apply(int, XFunction),
invoke(int, int, XConsumer),
invoke(int, XConsumer)public static <R> Report<R> apply(int numberOfExecutionsInSeparateThreads, XFunction<Integer,R,?> operation) throws InterruptedException
Report after executing a particular operation multiple times in parallel.R - The type of result of the operation to be performed.numberOfExecutionsInSeparateThreads - The total number of operations to be performed each on its own
parallel thread.operation - The operation to be performed.InterruptedException - When the current thread is interrupted while waiting for the executing threads.apply(int, int, XFunction),
invoke(int, int, XConsumer),
invoke(int, XConsumer)public static Report<Void> invoke(int numberOfExecutions, int numberOfThreads, XConsumer<Integer,?> operation) throws InterruptedException
Report after executing a particular operation multiple times in parallel.numberOfExecutions - The total number of times the operation should be performed.numberOfThreads - The number of parallel threads in which the operation should be performed.operation - The operation to be performed.InterruptedException - When the current thread is interrupted while waiting for the executing threads.invoke(int, XConsumer),
apply(int, int, XFunction),
apply(int, XFunction)public static Report<Void> invoke(int numberOfExecutionsInSeparateThreads, XConsumer<Integer,?> operation) throws InterruptedException
Report after executing a particular operation multiple times in parallel.numberOfExecutionsInSeparateThreads - The total number of operations to be performed each on its own
parallel thread.operation - The operation to be performed.InterruptedException - When the current thread is interrupted while waiting for the executing threads.invoke(int, int, XConsumer),
apply(int, int, XFunction),
apply(int, XFunction)Copyright © 2022 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.