Uses of Class
org.springframework.batch.core.scope.context.ChunkContext
Package
Description
Core domain context for Spring Batch covering jobs, steps, configuration and execution
abstractions.
Generic implementations of core batch listener interfaces.
Implementation of the contexts for each of the custom bean scopes in Spring Batch (Job
and Step).
Specific implementations of step concerns for item-oriented approach.
Interfaces and generic implementations of tasklet concerns.
-
Uses of ChunkContext in org.springframework.batch.core
Modifier and TypeMethodDescriptiondefault void
ChunkListener.afterChunk
(ChunkContext context) Callback after the chunk is executed, outside the transaction.default void
ChunkListener.afterChunkError
(ChunkContext context) Callback after a chunk has been marked for rollback.default void
ChunkListener.beforeChunk
(ChunkContext context) Callback before the chunk is executed, but inside the transaction. -
Uses of ChunkContext in org.springframework.batch.core.listener
Modifier and TypeMethodDescriptionvoid
ChunkListenerSupport.afterChunk
(ChunkContext context) Deprecated.void
CompositeChunkListener.afterChunk
(ChunkContext context) Call the registered listeners in reverse order.void
MulticasterBatchListener.afterChunk
(ChunkContext context) void
ChunkListenerSupport.afterChunkError
(ChunkContext context) Deprecated.void
CompositeChunkListener.afterChunkError
(ChunkContext context) Call the registered listeners in reverse order.void
MulticasterBatchListener.afterChunkError
(ChunkContext context) void
ChunkListenerSupport.beforeChunk
(ChunkContext context) Deprecated.void
CompositeChunkListener.beforeChunk
(ChunkContext context) Call the registered listeners in order, respecting and prioritizing those that implementOrdered
.void
MulticasterBatchListener.beforeChunk
(ChunkContext context) -
Uses of ChunkContext in org.springframework.batch.core.scope.context
Modifier and TypeMethodDescriptionabstract RepeatStatus
StepContextRepeatCallback.doInChunkContext
(RepeatContext context, ChunkContext chunkContext) Do the work required for this chunk of the step. -
Uses of ChunkContext in org.springframework.batch.core.step.item
Modifier and TypeMethodDescriptionChunkOrientedTasklet.execute
(StepContribution contribution, ChunkContext chunkContext) -
Uses of ChunkContext in org.springframework.batch.core.step.tasklet
Modifier and TypeMethodDescriptionCallableTaskletAdapter.execute
(StepContribution contribution, ChunkContext chunkContext) Execute the provided Callable and return itsRepeatStatus
.MethodInvokingTaskletAdapter.execute
(StepContribution contribution, ChunkContext chunkContext) Delegate execution to the target object and translate the return value to anExitStatus
by invoking a method in the delegate POJO.SystemCommandTasklet.execute
(StepContribution contribution, ChunkContext chunkContext) Execute system command and map its exit code toExitStatus
usingSystemProcessExitCodeMapper
.Tasklet.execute
(StepContribution contribution, ChunkContext chunkContext) Given the current context in the form of a step contribution, do whatever is necessary to process this unit inside a transaction.