类 AbstractState

    • 构造器概要

      构造器 
      构造器说明
      AbstractState​(java.lang.String name) 
    • 方法概要

      所有方法 实例方法 抽象方法 具体方法 
      修饰符和类型方法说明
      java.lang.StringgetName()
      The name of the state.
      abstract FlowExecutionStatushandle​(FlowExecutor executor)
      Handle some business or processing logic and return a status that can be used to drive a flow to the next State.
      java.lang.StringtoString() 
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • 从接口继承的方法 org.springframework.batch.core.job.flow.State

        isEndState
    • 构造器详细资料

      • AbstractState

        public AbstractState​(java.lang.String name)
        参数:
        name - of the state.
    • 方法详细资料

      • getName

        public java.lang.String getName()
        从接口复制的说明: State
        The name of the state. Should be unique within a flow.
        指定者:
        getName 在接口中 State
        返回:
        the name of this state
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object
      • handle

        public abstract FlowExecutionStatus handle​(FlowExecutor executor)
                                            throws java.lang.Exception
        从接口复制的说明: State
        Handle some business or processing logic and return a status that can be used to drive a flow to the next State. The status can be any string, but special meaning is assigned to the static constants in FlowExecution. The context can be used by implementations to do whatever they need to do. The same context will be passed to all State instances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.
        指定者:
        handle 在接口中 State
        参数:
        executor - the context passed in by the caller
        返回:
        a status for the execution
        抛出:
        java.lang.Exception - if anything goes wrong