类 JmsItemReaderBuilder<T>
- java.lang.Object
- org.springframework.batch.item.jms.builder.JmsItemReaderBuilder<T>
public class JmsItemReaderBuilder<T> extends java.lang.Object
Creates a fully qualified JmsItemReader.- 从以下版本开始:
- 4.0
- 作者:
- Glenn Renfro
字段概要
字段 修饰符和类型 字段 说明 protected java.lang.Class<? extends T>
itemType
protected org.springframework.jms.core.JmsOperations
jmsTemplate
构造器概要
构造器 构造器 说明 JmsItemReaderBuilder()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JmsItemReader<T>
build()
Returns a fully constructedJmsItemReader
.JmsItemReaderBuilder<T>
itemType(java.lang.Class<? extends T> itemType)
Set the expected type of incoming message payloads.JmsItemReaderBuilder<T>
jmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
Establish the JMS template that will be used by the JmsItemReader.
字段详细资料
jmsTemplate
protected org.springframework.jms.core.JmsOperations jmsTemplate
构造器详细资料
JmsItemReaderBuilder
public JmsItemReaderBuilder()
方法详细资料
jmsTemplate
public JmsItemReaderBuilder<T> jmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
Establish the JMS template that will be used by the JmsItemReader.- 参数:
jmsTemplate
- aJmsOperations
instance- 返回:
- this instance for method chaining.
- 另请参阅:
JmsItemReader.setJmsTemplate(JmsOperations)
itemType
public JmsItemReaderBuilder<T> itemType(java.lang.Class<? extends T> itemType)
Set the expected type of incoming message payloads. Set this toMessage
to receive the raw underlying message.- 参数:
itemType
- the java class of the items to be delivered. Typically the same as the class parameter- 返回:
- this instance for method chaining.
- 抛出:
java.lang.IllegalStateException
- if the message payload is of the wrong type.- 另请参阅:
JmsItemReader.setItemType(Class)
build
public JmsItemReader<T> build()
Returns a fully constructedJmsItemReader
.- 返回:
- a new
JmsItemReader