public class AmqpItemWriter<T> extends 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
.
Constructor and Description |
---|
AmqpItemWriter(org.springframework.amqp.core.AmqpTemplate amqpTemplate) |
public AmqpItemWriter(org.springframework.amqp.core.AmqpTemplate amqpTemplate)
public void write(List<? extends T> items) throws Exception
ItemWriter
write
in interface ItemWriter<T>
Exception
- if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.Copyright © 2014 Pivotal. All rights reserved.