Q
- the result of the parent builder's build()public static class FlowBuilder.SplitBuilder<Q> extends Object
builder
is a FlowBuilder
):
Flow splitFlow = builder.start(flow1).split(new SyncTaskExecutor()).add(flow2).build();where
flow1
and flow2
will be executed (one after the other because of the task
executor that was added). Another example
Flow splitFlow = builder.start(step1).split(new SimpleAsyncTaskExecutor()).add(flow).build();In this example, a flow consisting of
step1
will be executed in parallel with flow
.Constructor and Description |
---|
SplitBuilder(FlowBuilder<Q> parent,
org.springframework.core.task.TaskExecutor executor) |
Modifier and Type | Method and Description |
---|---|
FlowBuilder<Q> |
add(Flow... flows)
Add flows to the split, in addition to the current state already present in the parent builder.
|
public SplitBuilder(FlowBuilder<Q> parent, org.springframework.core.task.TaskExecutor executor)
parent
- the parent builderexecutor
- the task executor to use in the splitpublic FlowBuilder<Q> add(Flow... flows)
flows
- more flows to add to the splitCopyright © 2019 Pivotal. All rights reserved.