|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.flow.support.state.AbstractState
org.springframework.batch.core.job.flow.support.state.DecisionState
public class DecisionState
State that requires a decider to make the status decision.
| Constructor Summary | |
|---|---|
DecisionState(JobExecutionDecider decider,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
FlowExecutionStatus |
handle(FlowExecutor executor)
Handle some business or processing logic and return a status that can be used to drive a flow to the next State. |
boolean |
isEndState()
Inquire as to whether a State is an end state. |
| Methods inherited from class org.springframework.batch.core.job.flow.support.state.AbstractState |
|---|
getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DecisionState(JobExecutionDecider decider,
java.lang.String name)
name - | Method Detail |
|---|
public FlowExecutionStatus handle(FlowExecutor executor)
throws java.lang.Exception
StateState. 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 in interface Statehandle in class AbstractStateexecutor - the context passed in by the caller
java.lang.Exception - if anything goes wrongpublic boolean isEndState()
StateState is an end state. Implementations
should return false if processing can continue, even if that would
require a restart.
State is the end of processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||