类 FlowBuilder.TransitionBuilder<Q>

  • 类型参数:
    Q - the result of the parent builder's build()
    封闭类:
    FlowBuilder<Q>

    public static class FlowBuilder.TransitionBuilder<Q>
    extends java.lang.Object
    A builder for transitions within a flow.
    作者:
    Dave Syer
    • 方法详细资料

      • to

        public FlowBuilder<Qto​(Step step)
        Specify the next step.
        参数:
        step - the next step after this transition
        返回:
        a FlowBuilder
      • to

        public FlowBuilder<Qto​(Flow flow)
        Specify the next state as a complete flow.
        参数:
        flow - the next flow after this transition
        返回:
        a FlowBuilder
      • to

        public FlowBuilder<Qto​(JobExecutionDecider decider)
        Specify the next state as a decision.
        参数:
        decider - the decider to determine the next step
        返回:
        a FlowBuilder
      • stop

        public FlowBuilder<Qstop()
        Signal the successful end of the flow.
        返回:
        a FlowBuilder
      • stopAndRestart

        public FlowBuilder<QstopAndRestart​(Flow flow)
        Stop the flow and provide a flow to start with if the flow is restarted.
        参数:
        flow - the flow to restart with
        返回:
        a FlowBuilder
      • stopAndRestart

        public FlowBuilder<QstopAndRestart​(Step restart)
        Stop the flow and provide a step to start with if the flow is restarted.
        参数:
        restart - the step to restart with
        返回:
        a FlowBuilder
      • end

        public FlowBuilder<Qend()
        Signal the successful end of the flow.
        返回:
        a FlowBuilder
      • end

        public FlowBuilder<Qend​(java.lang.String status)
        Signal the end of the flow with the status provided.
        参数:
        status - String containing the status.
        返回:
        a FlowBuilder
      • fail

        public FlowBuilder<Qfail()
        Signal the end of the flow with an error condition.
        返回:
        a FlowBuilder