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