public class AsyncItemWriter<T> extends java.lang.Object implements ItemWriter<java.util.concurrent.Future<T>>, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
AsyncItemWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
setDelegate(ItemWriter<T> delegate) |
void |
write(java.util.List<? extends java.util.concurrent.Future<T>> items)
Process the supplied data element.
|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setDelegate(ItemWriter<T> delegate)
delegate - public void write(java.util.List<? extends java.util.concurrent.Future<T>> items) throws java.lang.Exception
ItemWriterwrite in interface ItemWriter<java.util.concurrent.Future<T>>java.lang.Exception - if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.