Uses of Class
org.springframework.batch.item.Chunk
Package
Description
Core domain context for Spring Batch covering jobs, steps, configuration and execution
abstractions.
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.
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
Modifier and TypeMethodDescriptiondefault void
ItemWriteListener.afterWrite
(Chunk<? extends S> items) Called afterItemWriter.write(Chunk)
.default void
ItemWriteListener.beforeWrite
(Chunk<? extends S> items) Called beforeItemWriter.write(Chunk)
default void
ItemWriteListener.onWriteError
(Exception exception, Chunk<? extends S> items) Called if an error occurs while trying to write. -
Uses of Chunk in org.springframework.batch.core.listener
Modifier and TypeMethodDescriptionvoid
CompositeItemWriteListener.afterWrite
(Chunk<? extends S> items) Call the registered listeners in reverse order, respecting and prioritising those that implementOrdered
.void
MulticasterBatchListener.afterWrite
(Chunk<? extends S> items) void
CompositeItemWriteListener.beforeWrite
(Chunk<? extends S> items) Call the registered listeners in order, respecting and prioritising those that implementOrdered
.void
MulticasterBatchListener.beforeWrite
(Chunk<? extends S> items) void
CompositeItemWriteListener.onWriteError
(Exception ex, Chunk<? extends S> items) Call the registered listeners in reverse order, respecting and prioritising those that implementOrdered
.void
MulticasterBatchListener.onWriteError
(Exception ex, Chunk<? extends S> items) -
Uses of Chunk in org.springframework.batch.core.step.item
Modifier and TypeMethodDescriptionFaultTolerantChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) SimpleChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) Extension point for subclasses that want to adjust the outputs based on additional saved data in the inputs.ChunkProvider.provide
(StepContribution contribution) SimpleChunkProvider.provide
(StepContribution contribution) FaultTolerantChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) SimpleChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) Modifier and TypeMethodDescriptionprotected final void
SimpleChunkProcessor.doAfterWrite
(Chunk<O> items) Call the listener's after write method.protected final void
SimpleChunkProcessor.doOnWriteError
(Exception e, Chunk<O> items) Call listener's writerError method.protected final void
Surrounds the actual write call with listener callbacks.FaultTolerantChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) SimpleChunkProcessor.getAdjustedOutputs
(Chunk<I> inputs, Chunk<O> outputs) 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) protected int
SimpleChunkProcessor.getFilterCount
(Chunk<I> inputs, Chunk<O> outputs) Extension point for subclasses to calculate the filter count.protected void
FaultTolerantChunkProcessor.initializeUserData
(Chunk<I> inputs) protected void
SimpleChunkProcessor.initializeUserData
(Chunk<I> inputs) 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) protected boolean
SimpleChunkProcessor.isComplete
(Chunk<I> inputs) Extension point for subclasses that want to store additional data in the inputs.void
DefaultItemFailureHandler.onWriteError
(Exception ex, Chunk<?> item) void
ChunkProvider.postProcess
(StepContribution contribution, Chunk<T> chunk) void
FaultTolerantChunkProvider.postProcess
(StepContribution contribution, Chunk<I> chunk) void
SimpleChunkProvider.postProcess
(StepContribution contribution, Chunk<I> chunk) void
ChunkProcessor.process
(StepContribution contribution, Chunk<I> chunk) final void
SimpleChunkProcessor.process
(StepContribution contribution, Chunk<I> inputs) protected I
FaultTolerantChunkProvider.read
(StepContribution contribution, Chunk<I> chunk) protected I
SimpleChunkProvider.read
(StepContribution contribution, Chunk<I> chunk) Delegates toSimpleChunkProvider.doRead()
.FaultTolerantChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) SimpleChunkProcessor.transform
(StepContribution contribution, Chunk<I> inputs) protected void
protected void
Simple implementation delegates to theSimpleChunkProcessor.doWrite(Chunk)
method and increments the write count in the contribution.protected void
SimpleChunkProcessor.writeItems
(Chunk<O> items) -
Uses of Chunk in org.springframework.batch.integration.async
Modifier 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
Modifier and TypeMethodDescription<T> ChunkRequest<T>
ChunkMessageChannelItemWriter.LocalState.getRequest
(Chunk<? extends T> items) void
ModifierConstructorDescriptionChunkRequest
(int sequence, Chunk<? extends T> items, long jobId, StepContribution stepContribution) -
Uses of Chunk in org.springframework.batch.item
-
Uses of Chunk in org.springframework.batch.item.adapter
-
Uses of Chunk in org.springframework.batch.item.amqp
-
Uses of Chunk in org.springframework.batch.item.avro
-
Uses of Chunk in org.springframework.batch.item.data
Modifier and TypeMethodDescriptionprotected void
Performs the actual write to the store via the template.protected void
Deprecated.Performs the actual write using 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
Deprecated.Write all items to the data store.void
Write all items to the data store via a Spring Data repository. -
Uses of Chunk in org.springframework.batch.item.database
Modifier 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
-
Uses of Chunk in org.springframework.batch.item.function
-
Uses of Chunk in org.springframework.batch.item.jms
-
Uses of Chunk in org.springframework.batch.item.json
-
Uses of Chunk in org.springframework.batch.item.mail
-
Uses of Chunk in org.springframework.batch.item.mail.javamail
-
Uses of Chunk in org.springframework.batch.item.queue
-
Uses of Chunk in org.springframework.batch.item.support
Modifier 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