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

# Class SynchronizedItemStreamWriterBuilder<T>

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

public class SynchronizedItemStreamWriterBuilder<T> extends Object
Creates a fully qualified `SynchronizedItemStreamWriter`.

Author:
  Dimitrios Liapis, Mahmoud Ben Hassine

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SynchronizedItemStreamWriterBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SynchronizedItemStreamWriter<T>`
  `build()`
  Returns a fully constructed `SynchronizedItemStreamWriter`.
  `SynchronizedItemStreamWriterBuilder<T>`
  `delegate(ItemStreamWriter<T> delegate)`
  Set the delegate `ItemStreamWriter`.

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

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

- ## Constructor Details

  - ### SynchronizedItemStreamWriterBuilder

    public SynchronizedItemStreamWriterBuilder()

- ## Method Details

  - ### delegate

    public SynchronizedItemStreamWriterBuilder<T> delegate(ItemStreamWriter<T> delegate)
    Set the delegate `ItemStreamWriter`.
    Parameters:
      `delegate` - the delegate to set
    Returns:
      this instance for method chaining

  - ### build

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