类 AmqpItemWriter<T>

  • 所有已实现的接口:
    ItemWriter<T>

    public class AmqpItemWriter<T>
    extends java.lang.Object
    implements ItemWriter<T>

    AMQP ItemWriter implementation using an AmqpTemplate to send messages. Messages will be sent to the nameless exchange if not specified on the provided AmqpTemplate.

    作者:
    Chris Schaefer, Mahmoud Ben Hassine
    • 构造器概要

      构造器 
      构造器说明
      AmqpItemWriter​(org.springframework.amqp.core.AmqpTemplate amqpTemplate) 
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      voidwrite​(java.util.List<? extends T> items)
      Process the supplied data element.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AmqpItemWriter

        public AmqpItemWriter​(org.springframework.amqp.core.AmqpTemplate amqpTemplate)
    • 方法详细资料

      • write

        public void write​(java.util.List<? extends T> items)
                   throws java.lang.Exception
        从接口复制的说明: ItemWriter
        Process the supplied data element. Will not be called with any null items in normal operation.
        指定者:
        write 在接口中 ItemWriter<T>
        参数:
        items - items to be written
        抛出:
        java.lang.Exception - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.