public interface ChunkListener extends StepListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLLBACK_EXCEPTION_KEY |
Modifier and Type | Method and Description |
---|---|
void |
afterChunk(ChunkContext context)
Callback after the chunk is executed, outside the transaction.
|
void |
afterChunkError(ChunkContext context)
Callback after a chunk has been marked for rollback.
|
void |
beforeChunk(ChunkContext context)
Callback before the chunk is executed, but inside the transaction.
|
static final java.lang.String ROLLBACK_EXCEPTION_KEY
void beforeChunk(ChunkContext context)
context
- The current ChunkContext
void afterChunk(ChunkContext context)
context
- The current ChunkContext
void afterChunkError(ChunkContext context)
context
- the chunk context containing the exception that caused
the underlying rollback.