public class LimitDecider extends java.lang.Object implements JobExecutionDecider
| Constructor and Description |
|---|
LimitDecider() |
| Modifier and Type | Method and Description |
|---|---|
FlowExecutionStatus |
decide(JobExecution jobExecution,
StepExecution stepExecution)
Strategy for branching an execution based on the state of an ongoing
JobExecution. |
void |
setLimit(int limit) |
public FlowExecutionStatus decide(JobExecution jobExecution, StepExecution stepExecution)
JobExecutionDeciderJobExecution. The return value will be used as a status to
determine the next step in the job.decide in interface JobExecutionDeciderjobExecution - a job executionstepExecution - the latest step execution (may be null)public void setLimit(int limit)
limit -