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.InitializingBean
java.lang.Exception
public void setDelegate(ItemWriter<T> delegate)
delegate
- ItemWriter that does the actual writing of the Future resultspublic void write(java.util.List<? extends java.util.concurrent.Future<T>> items) throws java.lang.Exception
ItemWriter
write
in interface ItemWriter<java.util.concurrent.Future<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.