Example usage for org.springframework.batch.repeat.context RepeatContextCounter RepeatContextCounter

List of usage examples for org.springframework.batch.repeat.context RepeatContextCounter RepeatContextCounter

Introduction

In this page you can find the example usage for org.springframework.batch.repeat.context RepeatContextCounter RepeatContextCounter.

Prototype

public RepeatContextCounter(RepeatContext context, String countKey, boolean useParent) 

Source Link

Document

Construct a new RepeatContextCounter .

Usage

From source file:org.springframework.batch.repeat.exception.RethrowOnThresholdExceptionHandler.java

private RepeatContextCounter getCounter(RepeatContext context, IntegerHolder key) {
    String attribute = RethrowOnThresholdExceptionHandler.class.getName() + "." + key;
    // Creates a new counter and stores it in the correct context:
    return new RepeatContextCounter(context, attribute, useParent);
}