Example usage for org.springframework.batch.repeat.support RepeatInternalStateSupport RepeatInternalStateSupport

List of usage examples for org.springframework.batch.repeat.support RepeatInternalStateSupport RepeatInternalStateSupport

Introduction

In this page you can find the example usage for org.springframework.batch.repeat.support RepeatInternalStateSupport RepeatInternalStateSupport.

Prototype

RepeatInternalStateSupport

Source Link

Usage

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

/**
 * Create an internal state object that is used to store data needed
 * internally in the scope of an iteration. Used by subclasses to manage the
 * queueing and retrieval of asynchronous results. The default just provides
 * an accumulation of Throwable instances for processing at the end of the
 * batch./*from w  w w . j a va2s . c o m*/
 * 
 * @param context the current {@link RepeatContext}
 * @return a {@link RepeatInternalState} instance.
 * 
 * @see RepeatTemplate#waitForResults(RepeatInternalState)
 */
protected RepeatInternalState createInternalState(RepeatContext context) {
    return new RepeatInternalStateSupport();
}