T
- 処理するアイテムの型 (主キーのような Memento を使用することをお勧めします)public interface ChunkHandler<T>
修飾子と型 | メソッドと説明 |
---|---|
ChunkResponse | handleChunk(ChunkRequest<T> chunk) チャンクを処理し、すべてのアイテムを処理して、結果を要約したレスポンスを返します。 |
ChunkResponse handleChunk(ChunkRequest<T> chunk) throws java.lang.Exception
chunk
- 処理するチャンクを含むリクエスト java.lang.Exception
- ハンドラーがトランザクションをロールバックし、チャンクを再配信する必要がある場合