T - The type of elementpublic class DisableableItemReader<T> extends ItemReaderWrapper<T>
| Constructor and Description |
|---|
DisableableItemReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isDisabled() |
void |
open(org.springframework.batch.item.ExecutionContext executionContext) |
T |
read() |
void |
setDisabled(boolean disable) |
afterPropertiesSet, setBeanName, setItemReader, toString, updatepublic void open(org.springframework.batch.item.ExecutionContext executionContext)
throws org.springframework.batch.item.ItemStreamException
open in interface org.springframework.batch.item.ItemStreamopen in class ItemReaderWrapper<T>org.springframework.batch.item.ItemStreamExceptionpublic T read() throws Exception, org.springframework.batch.item.UnexpectedInputException, org.springframework.batch.item.ParseException, org.springframework.batch.item.NonTransientResourceException
read in interface org.springframework.batch.item.ItemReader<T>read in class ItemReaderWrapper<T>Exception - In case of errororg.springframework.batch.item.UnexpectedInputExceptionorg.springframework.batch.item.ParseExceptionorg.springframework.batch.item.NonTransientResourceExceptionpublic void close()
throws org.springframework.batch.item.ItemStreamException
close in interface org.springframework.batch.item.ItemStreamclose in class ItemReaderWrapper<T>org.springframework.batch.item.ItemStreamExceptionpublic void setDisabled(boolean disable)
disable - - to disable or notpublic boolean isDisabled()
Copyright © 2016. All rights reserved.