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 Type
    Method
    Description
    boolean
    Checkpoint the currently held sequence number if it is bigger than already stored.
    boolean
    checkpoint(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

      boolean checkpoint(String sequenceNumber)
      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.