List of usage examples for org.springframework.batch.repeat.context RepeatContextCounter RepeatContextCounter
public RepeatContextCounter(RepeatContext context, String countKey, boolean useParent)
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); }