Uses of Class
org.springframework.batch.item.Chunk
Packages that use Chunk
Package
Description
Generic implementations of core batch listener interfaces.
Specific implementations of step concerns for item-oriented approach.
Components for executing item processing asynchronously and writing the results when
processing is complete.
Components for remote chunking.
Infrastructure interfaces and primary dependencies for item concerns.
Adapters for Plain Old Java Objects.
AMQP related batch components.
Avro related reader and writer.
Spring Data related readers and writers.
Infrastructure implementations of database based item readers and writers.
Infrastructure implementations of io file concerns.
Adapters for
java.util.function
components.JMS based reader/writer and related components.
Infrastructure implementations of JSON input and output.
Java Mail based components.
JavaMail related components.
Internal support package
Infrastructure implementations of xml input and output.
-
Uses of Chunk in org.springframework.batch.core.listener
Methods in org.springframework.batch.core.listener with parameters of type ChunkModifier and TypeMethodDescriptiondefault void
ChunkListener.afterChunk
(Chunk<O> chunk) Callback after the chunk is written, inside the transaction.void
CompositeChunkListener.afterChunk
(Chunk chunk) Call the registered listeners in reverse order.void
CompositeItemWriteListener.afterWrite
(Chunk<? extends S> items) Call the registered listeners in reverse order, respecting and prioritising those that implementOrdered
.default void
ItemWriteListener.afterWrite
(Chunk<? extends S> items) Called afterItemWriter.write(Chunk)
.void
MulticasterBatchListener.afterWrite
(Chunk<? extends S> items) default void
ChunkListener.beforeChunk
(Chunk<I> chunk) Callback before the chunk is processed, inside the transaction.void
CompositeChunkListener.beforeChunk
(Chunk chunk) Call the registered listeners in order, respecting and prioritizing those that implementOrdered
.void
CompositeItemWriteListener.beforeWrite
(Chunk<? extends S> items) Call the registered listeners in order, respecting and prioritising those that implementOrdered
.default void
ItemWriteListener.beforeWrite
(Chunk<? extends S> items) Called beforeItemWriter.write(Chunk)
void
MulticasterBatchListener.beforeWrite
(Chunk<? extends S> items) default void
ChunkListener.onChunkError
(Exception exception, Chunk<O> chunk) Callback if an exception occurs while processing or writing a chunk, inside the transaction, which is about to be rolled back.void
CompositeChunkListener.onChunkError
(Exception exception, Chunk chunk) Call the registered listeners in reverse order.void
CompositeItemWriteListener.onWriteError
(Exception ex, Chunk<? extends S> items) Call the registered listeners in reverse order, respecting and prioritising those that implementOrdered
.default void
ItemWriteListener.onWriteError
(Exception exception, Chunk<? extends S> items) Called if an error occurs while trying to write.void
MulticasterBatchListener.onWriteError
(Exception ex, Chunk<? extends S> items) -
Uses of Chunk in org.springframework.batch.core.step.item
Methods in org.springframework.batch.core.step.item that return ChunkModifier and TypeMethodDescriptionFaultTolerantChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) Deprecated, for removal: This API element is subject to removal in a future version.SimpleChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) Deprecated, for removal: This API element is subject to removal in a future version.Extension point for subclasses that want to adjust the outputs based on additional saved data in the inputs.ChunkProvider.provide
(StepContribution contribution) Deprecated, for removal: This API element is subject to removal in a future version.SimpleChunkProvider.provide
(StepContribution contribution) Deprecated, for removal: This API element is subject to removal in a future version.FaultTolerantChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.SimpleChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.Methods in org.springframework.batch.core.step.item with parameters of type ChunkModifier and TypeMethodDescriptionprotected final void
SimpleChunkProcessor.doAfterWrite
(Chunk<O> items) Deprecated, for removal: This API element is subject to removal in a future version.Call the listener's after write method.protected final void
SimpleChunkProcessor.doOnWriteError
(Exception e, Chunk<O> items) Deprecated, for removal: This API element is subject to removal in a future version.Call listener's writerError method.protected final void
Deprecated, for removal: This API element is subject to removal in a future version.Surrounds the actual write call with listener callbacks.FaultTolerantChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) Deprecated, for removal: This API element is subject to removal in a future version.SimpleChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) Deprecated, for removal: This API element is subject to removal in a future version.Extension point for subclasses that want to adjust the outputs based on additional saved data in the inputs.protected int
FaultTolerantChunkProcessor.getFilterCount
(Chunk<I> inputs, Chunk<O> outputs) Deprecated, for removal: This API element is subject to removal in a future version.protected int
SimpleChunkProcessor.getFilterCount
(Chunk<I> inputs, Chunk<O> outputs) Deprecated, for removal: This API element is subject to removal in a future version.Extension point for subclasses to calculate the filter count.protected void
FaultTolerantChunkProcessor.initializeUserData
(Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.protected void
SimpleChunkProcessor.initializeUserData
(Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.Extension point for subclasses to allow them to memorise the contents of the inputs, in case they are needed for accounting purposes later.protected boolean
FaultTolerantChunkProcessor.isComplete
(Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
SimpleChunkProcessor.isComplete
(Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.Extension point for subclasses that want to store additional data in the inputs.void
DefaultItemFailureHandler.onWriteError
(Exception ex, Chunk<?> item) Deprecated, for removal: This API element is subject to removal in a future version.void
ChunkProvider.postProcess
(StepContribution contribution, Chunk<T> chunk) Deprecated, for removal: This API element is subject to removal in a future version.void
FaultTolerantChunkProvider.postProcess
(StepContribution contribution, Chunk<I> chunk) Deprecated, for removal: This API element is subject to removal in a future version.void
SimpleChunkProvider.postProcess
(StepContribution contribution, Chunk<I> chunk) Deprecated, for removal: This API element is subject to removal in a future version.void
ChunkProcessor.process
(StepContribution contribution, Chunk<I> chunk) Deprecated, for removal: This API element is subject to removal in a future version.final void
SimpleChunkProcessor.process
(StepContribution contribution, Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.protected I
FaultTolerantChunkProvider.read
(StepContribution contribution, Chunk<I> chunk) Deprecated, for removal: This API element is subject to removal in a future version.protected I
SimpleChunkProvider.read
(StepContribution contribution, Chunk<I> chunk) Deprecated, for removal: This API element is subject to removal in a future version.Delegates toSimpleChunkProvider.doRead()
.FaultTolerantChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.SimpleChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) Deprecated, for removal: This API element is subject to removal in a future version.protected void
Deprecated, for removal: This API element is subject to removal in a future version.protected void
Deprecated, for removal: This API element is subject to removal in a future version.Simple implementation delegates to theSimpleChunkProcessor.doWrite(Chunk)
method and increments the write count in the contribution.protected void
SimpleChunkProcessor.writeItems
(Chunk<O> items) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Chunk in org.springframework.batch.integration.async
Methods in org.springframework.batch.integration.async with parameters of type ChunkModifier and TypeMethodDescriptionvoid
In the processing of theFuture
s passed, nulls are not passed to the delegate since they are considered filtered out by theAsyncItemProcessor
's delegatedItemProcessor
. -
Uses of Chunk in org.springframework.batch.integration.chunk
Methods in org.springframework.batch.integration.chunk that return ChunkMethods in org.springframework.batch.integration.chunk with parameters of type ChunkModifier and TypeMethodDescription<T> ChunkRequest<T>
ChunkMessageChannelItemWriter.LocalState.getRequest
(Chunk<? extends T> items) void
Constructors in org.springframework.batch.integration.chunk with parameters of type ChunkModifierConstructorDescriptionChunkRequest
(int sequence, Chunk<? extends T> items, long jobId, StepContribution stepContribution) -
Uses of Chunk in org.springframework.batch.item
Methods in org.springframework.batch.item that return ChunkMethods in org.springframework.batch.item with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.adapter
Methods in org.springframework.batch.item.adapter with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.amqp
Methods in org.springframework.batch.item.amqp with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.avro
Methods in org.springframework.batch.item.avro with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.data
Methods in org.springframework.batch.item.data with parameters of type ChunkModifier and TypeMethodDescriptionprotected void
Performs the actual write to the store via the template.protected void
Performs the actual write to the repository.void
If a transaction is active, buffer items to be written just before commit.void
Write all items to the data store via a Spring Data repository. -
Uses of Chunk in org.springframework.batch.item.database
Methods in org.springframework.batch.item.database with parameters of type ChunkModifier and TypeMethodDescriptionprotected void
Do perform the actual write operation.void
void
Merge all provided items that aren't already in the persistence context and then flush the entity manager. -
Uses of Chunk in org.springframework.batch.item.file
Methods in org.springframework.batch.item.file with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.function
Methods in org.springframework.batch.item.function with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.jms
Methods in org.springframework.batch.item.jms with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.json
Methods in org.springframework.batch.item.json with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.mail
Methods in org.springframework.batch.item.mail with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.mail.javamail
Methods in org.springframework.batch.item.mail.javamail with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.queue
Methods in org.springframework.batch.item.queue with parameters of type Chunk -
Uses of Chunk in org.springframework.batch.item.support
Methods in org.springframework.batch.item.support with parameters of type ChunkModifier and TypeMethodDescriptionprotected abstract String
Write out a string of items followed by a "new line", where the format of the new line separator is determined by the underlying operating system.void
Writes out a string followed by a "new line", where the format of the new line separator is determined by the underlying operating system.void
Delegates to injectedItemWriter
instances according to their classification by theClassifier
.void
void
void
This method delegates to thewrite
method of thedelegate
.void
This method delegates to thewrite
method of the delegate and is synchronized with a lock. -
Uses of Chunk in org.springframework.batch.item.xml
Methods in org.springframework.batch.item.xml with parameters of type Chunk