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 java.lang.Object

  Creates a fully qualified SynchronizedItemStreamReader.
  Since:
    4.0
  Author:
    Glenn Renfro

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SynchronizedItemStreamReaderBuilder()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### SynchronizedItemStreamReaderBuilder

          public SynchronizedItemStreamReaderBuilder()

  - ### Method Detail

    - #### 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`