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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.