Class SingleItemPeekableItemReaderBuilder<T>
java.lang.Object
org.springframework.batch.item.support.builder.SingleItemPeekableItemReaderBuilder<T>
Creates a fully qualified SingleItemPeekeableItemReader.
- Since:
- 4.0
- Author:
- Glenn Renfro
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a fully constructedSingleItemPeekableItemReader
.delegate
(ItemReader<T> delegate) The item reader to use as a delegate.
-
Constructor Details
-
SingleItemPeekableItemReaderBuilder
public SingleItemPeekableItemReaderBuilder()
-
-
Method Details
-
delegate
The item reader to use as a delegate. Items are read from the delegate and passed to the caller inSingleItemPeekableItemReader.read()
.- Parameters:
delegate
- the delegate to set- Returns:
- this instance for method chaining
- See Also:
-
build
Returns a fully constructedSingleItemPeekableItemReader
.- Returns:
- a new
SingleItemPeekableItemReader
-