public class CompositeChunkListener extends java.lang.Object implements ChunkListener
ROLLBACK_EXCEPTION_KEY
Constructor and Description |
---|
CompositeChunkListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterChunk(ChunkContext context)
Call the registered listeners in reverse order.
|
void |
afterChunkError(ChunkContext context)
Call the registered listeners in reverse order.
|
void |
beforeChunk(ChunkContext context)
Call the registered listeners in order, respecting and prioritizing those
that implement
Ordered . |
void |
register(ChunkListener chunkListener)
Register additional listener.
|
void |
setListeners(java.util.List<? extends ChunkListener> listeners)
Public setter for the listeners.
|
public void setListeners(java.util.List<? extends ChunkListener> listeners)
listeners
- list of ChunkListener
.public void register(ChunkListener chunkListener)
chunkListener
- instance of ChunkListener
.public void afterChunk(ChunkContext context)
afterChunk
in interface ChunkListener
context
- The current ChunkContext
ChunkListener.afterChunk(ChunkContext context)
public void beforeChunk(ChunkContext context)
Ordered
.beforeChunk
in interface ChunkListener
context
- The current ChunkContext
ChunkListener.beforeChunk(ChunkContext context)
public void afterChunkError(ChunkContext context)
afterChunkError
in interface ChunkListener
context
- the chunk context containing the exception that caused
the underlying rollback.ChunkListener.afterChunkError(ChunkContext context)