org.springframework.batch.core.job.builder

## Class FlowBuilder.SplitBuilder<Q>

- java.lang.Object
- - org.springframework.batch.core.job.builder.FlowBuilder.SplitBuilder<Q>

- Type Parameters:
    `Q` - the result of the parent builder's build()
  Enclosing class:
    FlowBuilder<Q>

      public static class FlowBuilder.SplitBuilder<Q>
      extends java.lang.Object

  A builder for building a split state. Example (`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`.
  Author:
    Dave Syer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SplitBuilder(FlowBuilder<Q> parent, org.springframework.core.task.TaskExecutor executor)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SplitBuilder

          public SplitBuilder(FlowBuilder<Q> parent,
                              org.springframework.core.task.TaskExecutor executor)

      Parameters:
        `parent` - the parent builder
        `executor` - the task executor to use in the split

  - ### Method Detail

    - #### add

          public FlowBuilder<Q> add(Flow... flows)

      Add flows to the split, in addition to the current state already present in the parent builder.
      Parameters:
        `flows` - more flows to add to the split
      Returns:
        the parent builder