Checkpoint Algorithm

To show the other features of the chunks, we show this new element for the chunks called Checkpoint Algorithm.

In the Chunk reader section, we exposed the checkpoints and the checkpointInfo() method, which manages the checkpoint objects that are changing according to the item-count parameter declared in the chunk in the JSL descriptor file. It's a default strategy. Through the Checkpoint Algorithm, we can create new strategies to manage the checkpoints.

The Checkpoint Algorithm is represented by the javax.batch.api.chunk.AbstractCheckpointAlgorithm abstract class.

This component, if used, rewrites the item-count property and the checkpointInfo() method, so these last also if declared will be ignored.

Here's a simple Checkpoint ...

Get Mastering Java EE Development with WildFly now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.