|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface CheckpointAlgorithm
CheckpointAlgorithm provides a custom checkpoint policy for chunk steps.
| Method Summary | |
|---|---|
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 transaction timeout. |
void |
endCheckpoint()
The endCheckpoint method is invoked after the current checkpoint is committed. |
boolean |
isReadyToCheckpoint()
The isReadyToCheckpoint method is invoked by the batch runtime after each item read to determine if now is the time to checkpoint the current chunk. |
| Method Detail |
|---|
int checkpointTimeout()
throws Exception
timeout - specifies the global timeout value for the next checkpoint
interval
Exception - thrown for any errors.
void beginCheckpoint()
throws Exception
Exception - thrown for any errors.
boolean isReadyToCheckpoint()
throws Exception
Exception - thrown for any errors.
void endCheckpoint()
throws Exception
Exception - thrown for any errors.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||