# Uses of Class
org.springframework.batch.core.scope.context.ChunkContext

Packages that use ChunkContext
Package
Description
org.springframework.batch.core
Core domain context for Spring Batch covering jobs, steps, configuration and execution abstractions.
org.springframework.batch.core.listener
Generic implementations of core batch listener interfaces.
org.springframework.batch.core.scope.context
Implementation of the contexts for each of the custom bean scopes in Spring Batch (Job and Step).
org.springframework.batch.core.step.item
Specific implementations of step concerns for item-oriented approach.
org.springframework.batch.core.step.tasklet
Interfaces and generic implementations of tasklet concerns.

- ## Uses of ChunkContext in org.springframework.batch.core

  Methods in org.springframework.batch.core with parameters of type ChunkContext
  Modifier and Type
  Method
  Description
  `default 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

  Methods in org.springframework.batch.core.listener with parameters of type ChunkContext
  Modifier and Type
  Method
  Description
  `void`
  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 implement `Ordered`.
  `void`
  MulticasterBatchListener.`beforeChunk(ChunkContext context)`

- ## Uses of ChunkContext in org.springframework.batch.core.scope.context

  Methods in org.springframework.batch.core.scope.context with parameters of type ChunkContext
  Modifier and Type
  Method
  Description
  `abstract 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

  Methods in org.springframework.batch.core.step.item with parameters of type ChunkContext
  Modifier and Type
  Method
  Description
  `RepeatStatus`
  ChunkOrientedTasklet.`execute(StepContribution contribution, ChunkContext chunkContext)`

- ## Uses of ChunkContext in org.springframework.batch.core.step.tasklet

  Methods in org.springframework.batch.core.step.tasklet with parameters of type ChunkContext
  Modifier and Type
  Method
  Description
  `RepeatStatus`
  CallableTaskletAdapter.`execute(StepContribution contribution, ChunkContext chunkContext)`
  Execute the provided Callable and return its `RepeatStatus`.
  `RepeatStatus`
  MethodInvokingTaskletAdapter.`execute(StepContribution contribution, ChunkContext chunkContext)`
  Delegate execution to the target object and translate the return value to an `ExitStatus` by invoking a method in the delegate POJO.
  `RepeatStatus`
  SystemCommandTasklet.`execute(StepContribution contribution, ChunkContext chunkContext)`
  Execute system command and map its exit code to `ExitStatus` using `SystemProcessExitCodeMapper`.
  `RepeatStatus`
  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.