Class AmqpItemWriterBuilder<T>
java.lang.Object
org.springframework.batch.item.amqp.builder.AmqpItemWriterBuilder<T>
A builder implementation for the
AmqpItemWriter- Since:
- 4.0
- Author:
- Glenn Renfro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamqpTemplate(org.springframework.amqp.core.AmqpTemplate amqpTemplate) Establish the amqpTemplate to be used by the AmqpItemWriter.build()Validates and builds aAmqpItemWriter.
-
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:
-
build
Validates and builds aAmqpItemWriter.- Returns:
- a
AmqpItemWriter
-