public class ExceptionThrowingItemReaderProxy<T> extends Object implements org.springframework.batch.item.ItemReader<T>
ItemReader that throws exception on a given record number
(useful for testing restart).| Constructor and Description |
|---|
ExceptionThrowingItemReaderProxy() |
| Modifier and Type | Method and Description |
|---|---|
T |
read() |
void |
setDelegate(org.springframework.batch.item.ItemReader<T> delegate) |
void |
setThrowExceptionOnRecordNumber(int throwExceptionOnRecordNumber) |
public void setThrowExceptionOnRecordNumber(int throwExceptionOnRecordNumber)
throwExceptionOnRecordNumber - The number of record on which
exception should be thrownpublic void setDelegate(org.springframework.batch.item.ItemReader<T> delegate)
Copyright © 2014. All Rights Reserved.