类 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.JmsOperationsjmsTemplate 
    • 字段详细资料

      • itemType

        protected java.lang.Class<? extends T> itemType
      • jmsTemplate

        protected org.springframework.jms.core.JmsOperations jmsTemplate
    • 方法详细资料

      • itemType

        public JmsItemReaderBuilder<TitemType​(java.lang.Class<? extends T> itemType)
        Set the expected type of incoming message payloads. Set this to Message 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)