Example usage for org.springframework.batch.repeat RepeatContext isCompleteOnly

List of usage examples for org.springframework.batch.repeat RepeatContext isCompleteOnly

Introduction

In this page you can find the example usage for org.springframework.batch.repeat RepeatContext isCompleteOnly.

Prototype

boolean isCompleteOnly();

Source Link

Document

Public accessor for the complete flag.

Usage

From source file:org.springframework.batch.repeat.support.RepeatTemplate.java

private boolean isMarkedComplete(RepeatContext context) {
    boolean complete = context.isCompleteOnly();
    if (context.getParent() != null) {
        complete = complete || isMarkedComplete(context.getParent());
    }/*from  ww  w .ja  v  a 2 s.  c o  m*/
    if (complete) {
        logger.debug("Repeat is complete according to context alone.");
    }
    return complete;

}