Package org.springframework.batch.item.amqp.builder

# Class AmqpItemWriterBuilder<T>

java.lang.Object
org.springframework.batch.item.amqp.builder.AmqpItemWriterBuilder<T>

public class AmqpItemWriterBuilder<T> extends Object
A builder implementation for the `AmqpItemWriter`

Since:
  4.0
Author:
  Glenn Renfro
See Also:
  - `AmqpItemWriter`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AmqpItemWriterBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AmqpItemWriterBuilder<T>`
  `amqpTemplate(org.springframework.amqp.core.AmqpTemplate amqpTemplate)`
  Establish the amqpTemplate to be used by the AmqpItemWriter.
  `AmqpItemWriter<T>`
  `build()`
  Validates and builds a `AmqpItemWriter`.

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

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

- ## Constructor Details

  - ### AmqpItemWriterBuilder

    public AmqpItemWriterBuilder()

- ## Method Details

  - ### amqpTemplate

    public AmqpItemWriterBuilder<T> amqpTemplate(org.springframework.amqp.core.AmqpTemplate amqpTemplate)
    Establish the amqpTemplate to be used by the AmqpItemWriter.
    Parameters:
      `amqpTemplate` - the template to be used.
    Returns:
      this instance for method chaining
    See Also:
      - `AmqpItemWriter(AmqpTemplate)`

  - ### build

    public AmqpItemWriter<T> build()
    Validates and builds a `AmqpItemWriter`.
    Returns:
      a `AmqpItemWriter`