T - the type of the items to be processed (it is recommended to use a Memento like a primary key)public interface ChunkHandler<T>
| Modifier and Type | Method and Description |
|---|---|
ChunkResponse |
handleChunk(ChunkRequest<T> chunk)
Handle the chunk, processing all the items and returning a response summarising the result.
|
ChunkResponse handleChunk(ChunkRequest<T> chunk) throws java.lang.Exception
chunk - a request containing the chunk to processjava.lang.Exception - if the handler needs to roll back a transaction and have the chunk re-delivered