Announcement Announcement Module
Collapse
No announcement yet.
AbstractItemCountingItemStreamItemReader Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AbstractItemCountingItemStreamItemReader

    HTML Code:
    [CODE]public final T read() throws Exception, UnexpectedInputException, ParseException {
    		if (currentItemCount >= maxItemCount) {
    			return null;
    		}
    		currentItemCount++;
    		return doRead();
    	}[/CODE]
    Hi I was looking into the AbstractItemCountingItemStreamItemReader class in Spring batch and saw that the currentItemCount is incremented without having a synchronized block around it.
    What would be reason for that ?
Working...
X