Interface Checkpointer
public interface Checkpointer
A callback for target record process to perform checkpoint on the related shard.
- Since:
- 1.1
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheckpoint the currently held sequence number if it is bigger than already stored.booleancheckpoint(String sequenceNumber) Checkpoint the provided sequence number, if it is bigger than already stored.
-
Method Details
-
checkpoint
boolean checkpoint()Checkpoint the currently held sequence number if it is bigger than already stored.- Returns:
- true if checkpoint performed; false otherwise.
-
checkpoint
Checkpoint the provided sequence number, if it is bigger than already stored.- Parameters:
sequenceNumber- the sequence number to checkpoint.- Returns:
- true if checkpoint performed; false otherwise.
-