类 SplitState

    • 构造器详细资料

      • SplitState

        public SplitState​(java.util.Collection<Flow> flows,
                          java.lang.String name)
        参数:
        flows - collection of Flow instances.
        name - the name of the state.
    • 方法详细资料

      • setTaskExecutor

        public void setTaskExecutor​(org.springframework.core.task.TaskExecutor taskExecutor)
        Public setter for the taskExecutor.
        参数:
        taskExecutor - the taskExecutor to set
      • handle

        public FlowExecutionStatus handle​(FlowExecutor executor)
                                   throws java.lang.Exception
        Execute the flows in parallel by passing them to the TaskExecutor and wait for all of them to finish before proceeding.
        指定者:
        handle 在接口中 State
        指定者:
        handle 在类中 AbstractState
        参数:
        executor - the context passed in by the caller
        返回:
        a status for the execution
        抛出:
        java.lang.Exception - if anything goes wrong
        另请参阅:
        State.handle(FlowExecutor)
      • isEndState

        public boolean isEndState()
        从接口复制的说明: State
        Inquire as to whether a State is an end state. Implementations should return false if processing can continue, even if that would require a restart.
        指定者:
        isEndState 在接口中 State
        返回:
        true if this State is the end of processing