Class AmqpItemReaderBuilder<T>
java.lang.Object
org.springframework.batch.item.amqp.builder.AmqpItemReaderBuilder<T>
A builder implementation for the
AmqpItemReader
- Since:
- 4.0
- Author:
- Glenn Renfro
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamqpTemplate
(org.springframework.amqp.core.AmqpTemplate amqpTemplate) Establish the amqpTemplate to be used by the AmqpItemReader.build()
Validates and builds aAmqpItemReader
.Establish the itemType for the reader.
-
Constructor Details
-
AmqpItemReaderBuilder
public AmqpItemReaderBuilder()
-
-
Method Details
-
amqpTemplate
public AmqpItemReaderBuilder<T> amqpTemplate(org.springframework.amqp.core.AmqpTemplate amqpTemplate) Establish the amqpTemplate to be used by the AmqpItemReader.- Parameters:
amqpTemplate
- the template to be used.- Returns:
- this instance for method chaining
- See Also:
-
itemType
Establish the itemType for the reader.- Parameters:
itemType
- class type that will be returned by the reader.- Returns:
- this instance for method chaining.
- See Also:
-
build
Validates and builds aAmqpItemReader
.- Returns:
- a
AmqpItemReader
-