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
.
Constructor and Description |
---|
AmqpItemWriter(org.springframework.amqp.core.AmqpTemplate amqpTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
write(java.util.List<? extends T> items)
Process the supplied data element.
|
public AmqpItemWriter(org.springframework.amqp.core.AmqpTemplate amqpTemplate)
public void write(java.util.List<? extends T> items) throws java.lang.Exception
ItemWriter
write
in interface ItemWriter<T>
items
- items to be writtenjava.lang.Exception
- if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.