-
- All Known Implementing Classes:
- AbstractCheckpointAlgorithm
public interface CheckpointAlgorithm
CheckpointAlgorithm provides a custom checkpoint policy for chunk steps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
beginCheckpoint()
The beginCheckpoint method is invoked before the next checkpoint interval begins.int
checkpointTimeout()
The checkpointTimeout is invoked at the beginning of a new checkpoint interval for the purpose of establishing the checkpoint timeout.void
endCheckpoint()
The endCheckpoint method is invoked after the current checkpoint ends.boolean
isReadyToCheckpoint()
The isReadyToCheckpoint method is invoked by the batch runtime after each item processed to determine if now is the time to checkpoint the current chunk.
-
-
-
Method Detail
-
checkpointTimeout
int checkpointTimeout() throws Exception
The checkpointTimeout is invoked at the beginning of a new checkpoint interval for the purpose of establishing the checkpoint timeout. It is invoked before the next checkpoint transaction begins. This method returns an integer value, which is the timeout value that will be used for the next checkpoint transaction. This method is useful to automate the setting of the checkpoint timeout based on factors known outside the job * definition.- Parameters:
timeout
- specifies the checkpoint timeout value for the * next checkpoint interval.- Returns:
- the timeout interval to use for the next checkpoint interval
- Throws:
Exception
- thrown for any errors.
-
beginCheckpoint
void beginCheckpoint() throws Exception
The beginCheckpoint method is invoked before the next checkpoint interval begins.- Throws:
Exception
- thrown for any errors.
-
isReadyToCheckpoint
boolean isReadyToCheckpoint() throws Exception
The isReadyToCheckpoint method is invoked by the batch runtime after each item processed to determine if now is the time to checkpoint the current chunk.- Returns:
- boolean indicating whether or not to checkpoint now.
- Throws:
Exception
- thrown for any errors.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 17:18:19 Cette version de la page est en cache (à la date du 21/08/2025 17:18:19) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/batch/api/chunk/CheckpointAlgorithm.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.