class LimitDecider implements JobExecutionDecider {

	private int count = 0;

	private int limit = 1;

	@Override
	public FlowExecutionStatus decide(JobExecution jobExecution, @Nullable StepExecution stepExecution) {<FILL_FUNCTION_BODY>}

	/**
	 * @param limit number of times to return "CONTINUE"
	 */
	public void setLimit(int limit) {
		this.limit = limit;
	}

}

		if (++count >= limit) {
			return new FlowExecutionStatus("COMPLETED");
		}
		else {
			return new FlowExecutionStatus("CONTINUE");
		}
	
<no_super_class>