public class CompositeChunkListener extends 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 order, respecting and prioritizing those
that implement
Ordered . |
void |
afterChunkError(ChunkContext context)
Callback after a chunk has been marked for rollback.
|
void |
beforeChunk(ChunkContext context)
Call the registered listeners in reverse order.
|
void |
register(ChunkListener chunkListener)
Register additional listener.
|
void |
setListeners(List<? extends ChunkListener> listeners)
Public setter for the listeners.
|
public void setListeners(List<? extends ChunkListener> listeners)
listeners
- public void register(ChunkListener chunkListener)
chunkListener
- public void afterChunk(ChunkContext context)
Ordered
.afterChunk
in interface ChunkListener
context
- The current ChunkContext
ChunkListener.afterChunk(ChunkContext context)
public void beforeChunk(ChunkContext context)
beforeChunk
in interface ChunkListener
context
- The current ChunkContext
ChunkListener.beforeChunk(ChunkContext context)
public void afterChunkError(ChunkContext context)
ChunkListener
afterChunkError
in interface ChunkListener
context
- the chunk context containing the exception that caused
the underlying rollback.Copyright © 2014 Pivotal. All rights reserved.