/** * Reset the counter. * * @see org.springframework.batch.repeat.CompletionPolicy#start(RepeatContext) */ @Override public RepeatContext start(RepeatContext context) { return new SimpleTerminationContext(context); }
public boolean isComplete() { return getStartedCount() >= chunkSize; } }
public void update() { increment(); }
/** * Terminate if the chunk size has been reached. * * @see org.springframework.batch.repeat.CompletionPolicy#isComplete(RepeatContext) */ @Override public boolean isComplete(RepeatContext context) { return ((SimpleTerminationContext) context).isComplete(); }
/** * Terminate if the chunk size has been reached, or the result is null. * * @see org.springframework.batch.repeat.CompletionPolicy#isComplete(RepeatContext, * RepeatStatus) * @throws RuntimeException (normally terminating the batch) if the result is * itself an exception. */ @Override public boolean isComplete(RepeatContext context, RepeatStatus result) { return super.isComplete(context, result) || ((SimpleTerminationContext) context).isComplete(); }
/** * Increment the counter in the context. * * @see org.springframework.batch.repeat.CompletionPolicy#update(RepeatContext) */ @Override public void update(RepeatContext context) { ((SimpleTerminationContext) context).update(); }
public void update() { increment(); }
/** * Terminate if the chunk size has been reached, or the result is null. * * @see org.springframework.batch.repeat.CompletionPolicy#isComplete(RepeatContext, * RepeatStatus) * @throws RuntimeException (normally terminating the batch) if the result is * itself an exception. */ @Override public boolean isComplete(RepeatContext context, RepeatStatus result) { return super.isComplete(context, result) || ((SimpleTerminationContext) context).isComplete(); }
/** * Reset the counter. * * @see org.springframework.batch.repeat.CompletionPolicy#start(RepeatContext) */ @Override public RepeatContext start(RepeatContext context) { return new SimpleTerminationContext(context); }
public boolean isComplete() { return getStartedCount() >= chunkSize; } }
/** * Terminate if the chunk size has been reached. * * @see org.springframework.batch.repeat.CompletionPolicy#isComplete(RepeatContext) */ @Override public boolean isComplete(RepeatContext context) { return ((SimpleTerminationContext) context).isComplete(); }
/** * Increment the counter in the context. * * @see org.springframework.batch.repeat.CompletionPolicy#update(RepeatContext) */ @Override public void update(RepeatContext context) { ((SimpleTerminationContext) context).update(); }