Example usage for org.springframework.batch.item ExecutionContext getLong

List of usage examples for org.springframework.batch.item ExecutionContext getLong

Introduction

In this page you can find the example usage for org.springframework.batch.item ExecutionContext getLong.

Prototype

public long getLong(String key, long defaultLong) 

Source Link

Document

Typesafe Getter for the Long represented by the provided key with default value to return if key is not represented.

Usage

From source file:org.springframework.batch.core.partition.ExampleItemReader.java

@Override
public void open(ExecutionContext executionContext) throws ItemStreamException {
    super.open(executionContext);
    index = (int) executionContext.getLong(getExecutionContextKey("POSITION"), min);
}