类 AbstractState
- java.lang.Object
- org.springframework.batch.core.job.flow.support.state.AbstractState
- 所有已实现的接口:
State
- 直接已知子类:
DecisionState
,EndState
,FlowState
,SimpleFlowFactoryBean.DelegateState
,SplitState
,StepState
public abstract class AbstractState extends java.lang.Object implements State
- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 AbstractState(java.lang.String name)
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 java.lang.String
getName()
The name of the state.abstract FlowExecutionStatus
handle(FlowExecutor executor)
Handle some business or processing logic and return a status that can be used to drive a flow to the nextState
.java.lang.String
toString()
从类继承的方法 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.
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 nextState
. The status can be any string, but special meaning is assigned to the static constants inFlowExecution
. The context can be used by implementations to do whatever they need to do. The same context will be passed to allState
instances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.