public interface CheckpointAlgorithm
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.
|
int checkpointTimeout() throws Exception
Exception
- thrown for any errors.void beginCheckpoint() throws Exception
Exception
- thrown for any errors.boolean isReadyToCheckpoint() throws Exception
Exception
- thrown for any errors.Copyright © 2016 JBoss by Red Hat. All rights reserved.