- Enclosing class:
A State that proxies a delegate and changes its name but leaves its behavior unchanged.
- Dave Syer
Method SummaryModifier and TypeMethodDescription
getState()Gets the current state.Handle some business or processing logic and return a status that can be used to drive a flow to the next
booleanInquire as to whether a
Stateis an end state.
Methods inherited from class org.springframework.batch.core.job.flow.support.state.AbstractState
getStatepublic State getState()Gets the current state.
Statebeing used by the factory bean.
isEndStatepublic boolean isEndState()Description copied from interface:
StateInquire as to whether a
Stateis an end state. Implementations should return false if processing can continue, even if that would require a restart.
handleDescription copied from interface:
StateHandle 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
Stateinstances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.