public static class ParallelFlow.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
static ParallelFlow.Builder |
aNewParallelFlow(ExecutorService executorService)
Create a new
ParallelFlow builder. |
ParallelFlow |
build() |
ParallelFlow.Builder |
execute(Work... works) |
ParallelFlow.Builder |
named(String name) |
public static ParallelFlow.Builder aNewParallelFlow(ExecutorService executorService)
ParallelFlow builder. A ParallelFlow
requires a ExecutorService to run work units in parallel
using multiple threads.
It is the responsibility of the caller to manage the lifecycle
of the executor service.executorService - to use to run work units in parallelParallelFlow builderpublic ParallelFlow.Builder named(String name)
public ParallelFlow.Builder execute(Work... works)
public ParallelFlow build()
Copyright © 2020. All rights reserved.