public interface ParallelProcedure<E> extends Consumer<E>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ParallelProcedure.Default<E>
Sample implementation with a user defined number of maximum worker threads and a user defined timeout (in ms)
after which one worker thread will be abolished.
|
static interface |
ParallelProcedure.LogicProvider<S,P extends Consumer<? super S>>
Type providing the actual logic
Consumer to be applied to the elements enountered by a
ParallelProcedure. |
static interface |
ParallelProcedure.ThreadCountProvider |
static interface |
ParallelProcedure.ThreadTimeoutProvider |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(E element)
Applies a wrapped logic by delegating its execution to another thread.
|
Copyright © 2022 MicroStream Software. All rights reserved.