Class ChunkListenerAdapter

    • Constructor Detail

      • ChunkListenerAdapter

        public ChunkListenerAdapter​(javax.batch.api.chunk.listener.ChunkListener delegate)
        Parameters:
        delegate - to be called within the step chunk lifecycle
    • Method Detail

      • afterChunkError

        public void afterChunkError​(ChunkContext context)
        Description copied from interface: ChunkListener
        Callback after a chunk has been marked for rollback. It is invoked after transaction rollback. While the rollback will have occurred, transactional resources might still be active and accessible. Due to this, data access code within this callback will still "participate" in the original transaction unless it declares that it runs in its own transaction. Hence: Use PROPAGATION_REQUIRES_NEW for any transactional operation that is called from here.
        Specified by:
        afterChunkError in interface ChunkListener
        Parameters:
        context - the chunk context containing the exception that caused the underlying rollback.