public interface ChunkListener extends StepListener
Modifier and Type | Field and Description |
---|---|
static 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 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.Copyright © 2014 Pivotal. All rights reserved.