Package org.springframework.batch.item.support.builder

# Class SynchronizedItemStreamReaderBuilder<T>

java.lang.Object
org.springframework.batch.item.support.builder.SynchronizedItemStreamReaderBuilder<T>

public class SynchronizedItemStreamReaderBuilder<T> extends Object
Creates a fully qualified SynchronizedItemStreamReader.

Since:
  4.0
Author:
  Glenn Renfro

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SynchronizedItemStreamReaderBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SynchronizedItemStreamReader<T>`
  `build()`
  Returns a fully constructed `SynchronizedItemStreamReader`.
  `SynchronizedItemStreamReaderBuilder<T>`
  `delegate(ItemStreamReader<T> delegate)`
  The item stream reader to use as a delegate.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SynchronizedItemStreamReaderBuilder

    public SynchronizedItemStreamReaderBuilder()

- ## Method Details

  - ### delegate

    public SynchronizedItemStreamReaderBuilder<T> delegate(ItemStreamReader<T> delegate)
    The item stream reader to use as a delegate. Items are read from the delegate and passed to the caller in `SynchronizedItemStreamReader.read()`.
    Parameters:
      `delegate` - the delegate to set
    Returns:
      this instance for method chaining
    See Also:
      - `SynchronizedItemStreamReader.setDelegate(ItemStreamReader)`

  - ### build

    public SynchronizedItemStreamReader<T> build()
    Returns a fully constructed `SynchronizedItemStreamReader`.
    Returns:
      a new `SynchronizedItemStreamReader`