Class AmqpItemWriterBuilder<T>
- java.lang.Object
- org.springframework.batch.item.amqp.builder.AmqpItemWriterBuilder<T>
public class AmqpItemWriterBuilder<T> extends java.lang.ObjectA builder implementation for theAmqpItemWriter- Since:
- 4.0
- Author:
- Glenn Renfro
- See Also:
AmqpItemWriter
Constructor Summary
Constructors Constructor Description AmqpItemWriterBuilder()
Method Summary
All Methods Instance Methods Concrete Methods 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 aAmqpItemWriter.
Method Detail
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 aAmqpItemWriter.- Returns:
- a
AmqpItemWriter