O'Reilly logo

Mastering Java EE Development with WildFly by Luca Stancapiano

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required