Uses of Class
org.springframework.batch.item.Chunk
Packages that use 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.
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
Methods in org.springframework.batch.core with parameters of type ChunkModifier 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
Methods in org.springframework.batch.core.listener with parameters of type ChunkModifier 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
Methods in org.springframework.batch.core.step.item that return ChunkModifier 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) Methods in org.springframework.batch.core.step.item with parameters of type ChunkModifier 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<? extends Object> 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
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 TypeMethodDescriptionvoid
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
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
Methods in org.springframework.batch.item.database with parameters of type ChunkModifier and TypeMethodDescriptionprotected void
Deprecated, for removal: This API element is subject to removal in a future version.Do perform the actual write operation using Hibernate's API.protected void
Do perform the actual write operation.void
Deprecated, for removal: This API element is subject to removal in a future version.Save or update any entities not in the current hibernate session and then flush the hibernate session.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.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.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
. -
Uses of Chunk in org.springframework.batch.item.xml
Methods in org.springframework.batch.item.xml with parameters of type Chunk